Xtensa High priority interrupts cannot be masked during initialization #40974
Labels
area: Xtensa
Xtensa Architecture
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
High priority interrupts cannot be masked during initialization
Once the high-priority interrupt is enabled later before the interrupt stack is initialized and the interrupt occurs again, there will be issues.
XCHAL_EXCM_LEVEL cannot disable all interrupts, unless the architecture does not have high priority interrupts, we can leave only debug interrupts and NMI interrupts
file :crt1.s
My fix
The same here uses XCHAL_EXCM_LEVEL. Some architectures also cannot disable high-priority interrupts.
I suggest using XCHAL_NUM_INTLEVELS -1 or XCHAL_DEBUGLEVEL-1, which may be better
zephyr V2.7
The text was updated successfully, but these errors were encountered: