TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tz_context.h File Reference
#include <stdint.h>
Include dependency graph for tz_context.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TZ_MODULEID_T
 

Typedefs

typedef uint32_t TZ_ModuleId_t
 
typedef uint32_t TZ_MemoryId_t
 

Functions

uint32_t TZ_InitContextSystem_S (void)
 
TZ_MemoryId_t TZ_AllocModuleContext_S (TZ_ModuleId_t module)
 
uint32_t TZ_FreeModuleContext_S (TZ_MemoryId_t id)
 
uint32_t TZ_LoadContext_S (TZ_MemoryId_t id)
 
uint32_t TZ_StoreContext_S (TZ_MemoryId_t id)
 

Macro Definition Documentation

#define TZ_MODULEID_T

Definition at line 36 of file tz_context.h.

Typedef Documentation

typedef uint32_t TZ_MemoryId_t

TZ Memory ID identifies an allocated memory slot.

Definition at line 42 of file tz_context.h.

typedef uint32_t TZ_ModuleId_t

Data type that identifies secure software modules called by a process.

Definition at line 38 of file tz_context.h.

Function Documentation

TZ_MemoryId_t TZ_AllocModuleContext_S ( TZ_ModuleId_t  module)

Allocate context memory for calling secure software modules in TrustZone

Parameters
[in]moduleidentifies software modules called from non-secure mode
Returns
value != 0 id TrustZone memory slot identifier
value 0 no memory available or internal error

Definition at line 117 of file tfm_nspm_func.c.

Here is the call graph for this function:

uint32_t TZ_FreeModuleContext_S ( TZ_MemoryId_t  id)

Free context memory that was previously allocated with TZ_AllocModuleContext_S

Parameters
[in]idTrustZone memory slot identifier
Returns
execution status (1: success, 0: error)

Definition at line 149 of file tfm_nspm_func.c.

Here is the call graph for this function:

uint32_t TZ_InitContextSystem_S ( void  )

Initialize secure context memory system

Returns
execution status (1: success, 0: error)

Definition at line 85 of file tfm_nspm_func.c.

Here is the call graph for this function:

uint32_t TZ_LoadContext_S ( TZ_MemoryId_t  id)

Load secure context (called on RTOS thread context switch)

Parameters
[in]idTrustZone memory slot identifier
Returns
execution status (1: success, 0: error)

Definition at line 194 of file tfm_nspm_func.c.

Here is the call graph for this function:

uint32_t TZ_StoreContext_S ( TZ_MemoryId_t  id)

Store secure context (called on RTOS thread context switch)

Parameters
[in]idTrustZone memory slot identifier
Returns
execution status (1: success, 0: error)

Definition at line 233 of file tfm_nspm_func.c.

Here is the call graph for this function: