mirror of
https://github.com/apache/nuttx.git
synced 2026-08-04 13:49:06 +00:00
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:
parent
e0e562360e
commit
4b8e19b2c7
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue