arch: arm: Optimise Cortex-R exception return function.
z_arm_exc_exit (z_arm_int_exit) requires the current execution mode to be specified as a parameter (through r0). This is not necessary because this value can be directly read from CPSR. This commit modifies the exception return function to retrieve the current execution mode from CPSR and removes all provisions for passing the execution mode parameter. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This commit is contained in:
parent
1c3b46daff
commit
cd90d49a86
4 changed files with 4 additions and 27 deletions
|
@ -31,9 +31,6 @@
|
|||
|
||||
#define FPEXC_EN (1 << 30)
|
||||
|
||||
#define RET_FROM_SVC 0
|
||||
#define RET_FROM_IRQ 1
|
||||
|
||||
#define __ISB() __asm__ volatile ("isb sy" : : : "memory")
|
||||
#define __DMB() __asm__ volatile ("dmb sy" : : : "memory")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue