Lines Matching refs:lr
45 __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()
94 return (uint32_t *)(is_return_secure_stack(lr) in get_exception_frame()
98 return (uint32_t *)(is_return_psp(lr) ? psp : msp); in get_exception_frame()