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

Go to the source code of this file.

Data Structures

struct  tfm_state_context_t
 

Macros

#define XPSR_T32   0x01000000
 
#define TFM_STATE_RET_VAL(ctx)   (((struct tfm_state_context_t *)((ctx)->sp))->r0)
 

Functions

__STATIC_INLINE void tfm_arch_trigger_pendsv (void)
 
__STATIC_INLINE uint32_t __get_LR (void)
 Get Link Register. More...
 
__STATIC_INLINE uint32_t __get_active_exc_num (void)
 
__STATIC_INLINE void __set_CONTROL_SPSEL (uint32_t SPSEL)
 
void tfm_arch_init_actx (struct tfm_arch_ctx_t *p_actx, uint32_t sp, uint32_t sp_limit)
 
void tfm_arch_set_secure_exception_priorities (void)
 
void tfm_arch_configure_coprocessors (void)
 Configure coprocessors. More...
 
void tfm_arch_clear_fp_status (void)
 
void tfm_arch_init_context (struct tfm_arch_ctx_t *p_actx, void *param, uintptr_t pfn, uintptr_t stk_btm, uintptr_t stk_top)
 

Macro Definition Documentation

#define TFM_STATE_RET_VAL (   ctx)    (((struct tfm_state_context_t *)((ctx)->sp))->r0)

Definition at line 41 of file tfm_arch.h.

#define XPSR_T32   0x01000000

Definition at line 27 of file tfm_arch.h.

Function Documentation

__STATIC_INLINE uint32_t __get_active_exc_num ( void  )

Definition at line 65 of file tfm_arch.h.

Here is the caller graph for this function:

__STATIC_INLINE uint32_t __get_LR ( void  )

Get Link Register.

Returns the value of the Link Register (LR)

Returns
LR value

Definition at line 55 of file tfm_arch.h.

__STATIC_INLINE void __set_CONTROL_SPSEL ( uint32_t  SPSEL)

Definition at line 75 of file tfm_arch.h.

void tfm_arch_clear_fp_status ( void  )

Definition at line 174 of file tfm_arch_v6m_v7m.c.

Here is the caller graph for this function:

void tfm_arch_configure_coprocessors ( void  )

Configure coprocessors.

Definition at line 271 of file arch.c.

void tfm_arch_init_actx ( struct tfm_arch_ctx_t p_actx,
uint32_t  sp,
uint32_t  sp_limit 
)

Definition at line 78 of file tfm_arch_v6m_v7m.c.

Here is the caller graph for this function:

void tfm_arch_init_context ( struct tfm_arch_ctx_t p_actx,
void *  param,
uintptr_t  pfn,
uintptr_t  stk_btm,
uintptr_t  stk_top 
)

Definition at line 57 of file tfm_arch.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void tfm_arch_set_secure_exception_priorities ( void  )

Definition at line 146 of file tfm_arch_v6m_v7m.c.

Here is the caller graph for this function:

__STATIC_INLINE void tfm_arch_trigger_pendsv ( void  )

Definition at line 44 of file tfm_arch.h.

Here is the caller graph for this function: