You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
arch: arm: Add Cortex-R direct interrupt service routine support.
This commit implements direct interrupt service routine support for
Cortex-R.
On Cortex-R, the direct ISR function must be declared 'naked' with
manual context preservation due to the following reasons:
1. 'z_arm_int_exit' does not return to the caller on Cortex-R (whereas,
on Cortex-M, it can either return to the caller or directly exit the
IRQ mode depending on the value of LR).
2. If 'z_arm_int_exit' is called (when ISR body returns true), since
this function does not return to the caller on Cortex-R, the
registers pushed into stack by the compiler will not get popped.
3. The caller-saved registers must be saved into the system mode stack
because a context switch can occur.
Signed-off-by: Stephanos Ioannidis <[email protected]>
0 commit comments