Revert "arch/xtensa: set PS.EXCM initial value to 1 while new thread created"

This reverts commit 3194ef0e7c.

since level-2 and above interrupt, PS.EXCM is still 1.
window rotation related instruction is undefined behavior.

https://github.com/apache/nuttx/pull/15985#issuecomment-2728509964
This commit is contained in:
Gao Feng
2025-03-18 18:53:07 +08:00
committed by Alan C. Assis
parent e0e562360e
commit 4b8e19b2c7
+2 -2
View File
@@ -235,11 +235,11 @@ void up_initial_state(struct tcb_s *tcb)
/* Set initial PS to int level 0, user mode. */
#ifdef __XTENSA_CALL0_ABI__
xcp->regs[REG_PS] = PS_UM | PS_EXCM;
xcp->regs[REG_PS] = PS_UM;
#else
/* For windowed ABI set WOE and CALLINC (pretend task was 'call4'd). */
xcp->regs[REG_PS] = PS_UM | PS_EXCM | PS_WOE | PS_CALLINC(1);
xcp->regs[REG_PS] = PS_UM | PS_WOE | PS_CALLINC(1);
#endif
}