![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
#include <stdbool.h>
Go to the source code of this file.
Functions | |
void | tfm_access_violation_handler (void) |
Should be called in case of access violation. More... | |
bool | tfm_is_partition_privileged (uint32_t partition_idx) |
Return whether a secure partition is privileged. More... | |
void tfm_access_violation_handler | ( | void | ) |
Should be called in case of access violation.
There might be platform specific means, by which it is possible on a subsystem to detect access violation. For example a platform can have a Peripheral Protection Controller, to detect unauthorised accesses to peripheral registers. Setting up the protection, and handling the violation is implemented in platform specific code. However TF-M should be able to decide how to proceed if a violation happens. So to notify TF-M, platform code have to call this function, if a violation happens.
Definition at line 96 of file tfm_core_svcalls_func.c.
bool tfm_is_partition_privileged | ( | uint32_t | partition_idx | ) |
Return whether a secure partition is privileged.
[in] | partition_idx | The index of the partition in the partition_db. |
Definition at line 722 of file spm_func.c.