Contiki-NG
Loading...
Searching...
No Matches
tz-normal.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026, RISE Research Institutes of Sweden
3
* All rights reserved.
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions
7
* are met:
8
*
9
* 1. Redistributions of source code must retain the above copyright
10
* notice, this list of conditions and the following disclaimer.
11
*
12
* 2. Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
*
16
* 3. Neither the name of the copyright holder nor the names of its
17
* contributors may be used to endorse or promote products derived
18
* from this software without specific prior written permission.
19
*
20
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
31
* OF THE POSSIBILITY OF SUCH DAMAGE.
32
*/
33
34
/**
35
* \file
36
* Normal-world TrustZone API hooks.
37
*/
38
39
#ifndef TZ_NORMAL_H
40
#define TZ_NORMAL_H
41
42
#include <stdbool.h>
43
44
/**
45
* \brief Request a poll of the normal-world TrustZone process.
46
*
47
* Safe to call from any context, including NS interrupt
48
* handlers. The platform NS-side wake handler invokes this
49
* when the secure side has signalled that it has work for
50
* the normal world to drain.
51
*/
52
bool
tz_normal_request_poll
(
void
);
53
54
/**
55
* \brief Initialize the platform-specific mechanism that delivers
56
* secure-side wake-up requests to the normal world.
57
*
58
* Called once during normal-world TrustZone initialization.
59
* Weakly defined as a no-op so platforms without a wake
60
* mechanism still link; in that case secure-only events do
61
* not autonomously wake the normal world.
62
*/
63
void
tz_arch_init_ns_signal
(
void
);
64
65
#endif
/* TZ_NORMAL_H */
tz_normal_request_poll
bool tz_normal_request_poll(void)
Request a poll of the normal-world TrustZone process.
Definition
tz-normal.c:57
tz_arch_init_ns_signal
void tz_arch_init_ns_signal(void)
Initialize the platform-specific mechanism that delivers secure-side wake-up requests to the normal w...
Definition
tz-normal.c:65
arch
cpu
arm
cortex-m
trustzone
normal
tz-normal.h
Generated on Wed Jun 3 2026 15:14:13 for Contiki-NG by
1.10.0