This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 05d412f6b56297409c7a0a9820fc0f1f37839ed9
Author: Abdelatif Guettouche <[email protected]>
AuthorDate: Fri Jun 10 11:41:50 2022 +0200

    arch/xtensa/xtensa_user_handler.S: Use the ps_setup macro when possible.
    
    Signed-off-by: Abdelatif Guettouche <[email protected]>
---
 arch/xtensa/src/common/xtensa_user_handler.S | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/arch/xtensa/src/common/xtensa_user_handler.S 
b/arch/xtensa/src/common/xtensa_user_handler.S
index 10b787d6e4..c2bf3458a3 100644
--- a/arch/xtensa/src/common/xtensa_user_handler.S
+++ b/arch/xtensa/src/common/xtensa_user_handler.S
@@ -451,12 +451,7 @@ _xtensa_coproc_handler:
 
        /* Set up PS for C, re-enable hi-pri interrupts, and clear EXCM. */
 
-#ifdef __XTENSA_CALL0_ABI__
-       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
+       ps_setup        1 a0
 
        /* Call xtensa_user_panic, passing both the EXCCAUSE and a pointer to 
the
         * beginning of the register save area.

Reply via email to