File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1010
1111#include <rtthread.h>
1212
13+ #ifdef ARM_CM33_ENABLE_TRUSTZONE
1314extern void TZ_InitContextSystem_S (void );
1415extern rt_uint32_t TZ_AllocModuleContext_S (rt_uint32_t module );
1516extern rt_uint32_t TZ_FreeModuleContext_S (rt_uint32_t id );
1617extern rt_uint32_t TZ_LoadContext_S (rt_uint32_t id );
1718extern rt_uint32_t TZ_StoreContext_S (rt_uint32_t id );
19+ #else
20+ void TZ_InitContextSystem_S (void ){}
21+ rt_uint32_t TZ_AllocModuleContext_S (rt_uint32_t module ){return 0 ;}
22+ rt_uint32_t TZ_FreeModuleContext_S (rt_uint32_t id ) {return 0 ;}
23+ rt_uint32_t TZ_LoadContext_S (rt_uint32_t id ){return 0 ;};
24+ rt_uint32_t TZ_StoreContext_S (rt_uint32_t id ){return 0 ;};
25+ #endif
1826extern int tzcall (int id , rt_ubase_t arg0 , rt_ubase_t arg1 , rt_ubase_t arg2 );
1927
2028#define TZ_INIT_CONTEXT_ID (0x1001)
You can’t perform that action at this time.
0 commit comments