TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_platform_core_api.h File Reference
#include <stdbool.h>
Include dependency graph for tfm_platform_core_api.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...
 

Function Documentation

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.

Parameters
[in]partition_idxThe index of the partition in the partition_db.
Returns
True if the partition is privileged, false otherwise.

Definition at line 722 of file spm_func.c.

Here is the call graph for this function: