mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
arch/xtensa/xtensa_user_handler.S: Use the ps_setup macro when possible.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
e75c88df5b
commit
05d412f6b5
@@ -451,12 +451,7 @@ _xtensa_coproc_handler:
|
|||||||
|
|
||||||
/* Set up PS for C, re-enable hi-pri interrupts, and clear EXCM. */
|
/* Set up PS for C, re-enable hi-pri interrupts, and clear EXCM. */
|
||||||
|
|
||||||
#ifdef __XTENSA_CALL0_ABI__
|
ps_setup 1 a0
|
||||||
movi a0, PS_INTLEVEL(XCHAL_EXCM_LEVEL) | PS_UM
|
|
||||||
#else
|
|
||||||
movi a0, PS_INTLEVEL(XCHAL_EXCM_LEVEL) | PS_UM | PS_WOE
|
|
||||||
#endif
|
|
||||||
wsr a0, PS
|
|
||||||
|
|
||||||
/* Call xtensa_user_panic, passing both the EXCCAUSE and a pointer to the
|
/* Call xtensa_user_panic, passing both the EXCCAUSE and a pointer to the
|
||||||
* beginning of the register save area.
|
* beginning of the register save area.
|
||||||
|
|||||||
Reference in New Issue
Block a user