Home
last modified time | relevance | path

Searched refs:lr (Results 1 – 13 of 13) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/common/
Dexception_info.c45 __STATIC_INLINE bool is_return_thread_mode(uint32_t lr) in is_return_thread_mode() argument
48 return !((lr == EXC_RETURN_HANDLER) || (lr == EXC_RETURN_HANDLER_FPU)); in is_return_thread_mode()
51 return (lr & EXC_RETURN_MODE); in is_return_thread_mode()
53 return !(lr == EXC_RETURN_HANDLER); in is_return_thread_mode()
65 __STATIC_INLINE bool is_return_psp(uint32_t lr) in is_return_psp() argument
68 return ((lr == EXC_RETURN_THREAD_PSP) || (lr == EXC_RETURN_THREAD_PSP_FPU)); in is_return_psp()
72 return ((lr & EXC_RETURN_SPSEL) && is_return_thread_mode(lr)); in is_return_psp()
74 return (lr == EXC_RETURN_THREAD_PSP); in is_return_psp()
88 uint32_t *get_exception_frame(uint32_t lr, uint32_t msp, uint32_t psp) in get_exception_frame() argument
92 bool is_psp = is_return_psp(lr); in get_exception_frame()
[all …]
/trusted-firmware-m-3.4.0/secure_fw/spm/cmsis_psa/arch/
Dtfm_arch_v6m_v7m.h50 __STATIC_INLINE bool is_return_secure_stack(uint32_t lr) in is_return_secure_stack() argument
52 (void)lr; in is_return_secure_stack()
67 __STATIC_INLINE bool is_stack_alloc_fp_space(uint32_t lr) in is_stack_alloc_fp_space() argument
69 return (lr & EXC_RETURN_FPU_FRAME_BASIC) ? false : true; in is_stack_alloc_fp_space()
80 __STATIC_INLINE bool is_stack_alloc_fp_space(uint32_t lr) in is_stack_alloc_fp_space() argument
82 (void)lr; in is_stack_alloc_fp_space()
/trusted-firmware-m-3.4.0/secure_fw/spm/include/
Dtfm_arch_v8m.h76 __STATIC_INLINE bool is_return_secure_stack(uint32_t lr) in is_return_secure_stack() argument
78 return (lr & EXC_RETURN_SECURE_STACK); in is_return_secure_stack()
90 __STATIC_INLINE bool is_stack_alloc_fp_space(uint32_t lr) in is_stack_alloc_fp_space() argument
92 return (lr & EXC_RETURN_FPU_FRAME_BASIC) ? false : true; in is_stack_alloc_fp_space()
Dtfm_arch.h80 uint32_t lr; member
169 (x)->lr = (uint32_t)(pfnlr); \
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/
Dretarget.c117 uint32_t ProcessHardFault(uint32_t lr, uint32_t msp, uint32_t psp);
154 uint32_t ProcessHardFault(uint32_t lr, uint32_t msp, uint32_t psp) in ProcessHardFault() argument
160 if(lr & 0x40) in ProcessHardFault()
163 if(lr & 4) in ProcessHardFault()
173 if(lr & 4) in ProcessHardFault()
193 return lr; // Keep lr in R0 in ProcessHardFault()
254 uint32_t ProcessHardFault(uint32_t lr, uint32_t msp, uint32_t psp) in ProcessHardFault() argument
268 secure = (lr & 0x40ul) ? 1 : 0; in ProcessHardFault()
272 if(lr & 4UL) in ProcessHardFault()
286 if(lr & 4) in ProcessHardFault()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/arm/rss/common/
Dplatform_svc_handler.c16 uint32_t lr) in platform_svc_handlers() argument
18 (void) lr; in platform_svc_handlers()
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/corstone310/fvp/
Dplatform_svc_handler.c16 uint32_t lr) in platform_svc_handlers() argument
18 (void) lr; in platform_svc_handlers()
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/
Dretarget.c60 uint32_t ProcessHardFault(uint32_t lr, uint32_t msp, uint32_t psp);
180 uint32_t ProcessHardFault(uint32_t lr, uint32_t msp, uint32_t psp) in ProcessHardFault() argument
186 if(lr & 0x40) in ProcessHardFault()
189 if(lr & 4) in ProcessHardFault()
199 if(lr & 4) in ProcessHardFault()
221 return lr; // Keep lr in R0 in ProcessHardFault()
282 uint32_t ProcessHardFault(uint32_t lr, uint32_t msp, uint32_t psp) in ProcessHardFault() argument
295 secure = (lr & 0x40ul)?1ul:0ul; in ProcessHardFault()
299 if(lr & 4UL) in ProcessHardFault()
313 if(lr & 4) in ProcessHardFault()
[all …]
/trusted-firmware-m-3.4.0/secure_fw/spm/cmsis_psa/
Dtfm_core_svcalls_ipc.c33 uint32_t *ctx, uint32_t lr);
38 uint32_t lr) in SVC_Handler_IPC() argument
120 return (platform_svc_handlers(svc_num, ctx, lr)); in SVC_Handler_IPC()
/trusted-firmware-m-3.4.0/platform/ext/target/cypress/psoc64/Device/Source/gcc/
Dstartup_psoc64_s.S101 bx lr
112 bx lr
122 bx lr
Dstartup_psoc64_ns.S251 bx lr
263 bx lr
274 bx lr
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/hal/CMSIS_Driver/
Dlow_level_flash.c684 uint32_t lr; in NMI_Handler() local
692 lr = __get_LR(); in NMI_Handler()
695 if (((lr) & (0xFU)) == 0xDU) in NMI_Handler()
/trusted-firmware-m-3.4.0/docs/security/security_advisories/
Dsvc_caller_sp_fetching_vulnerability.rst41 tst lr, #4 ; EXC_RETURN.SPSEL == ?
45 mov r1, lr ; r1 = EXC_RETURN;