arch/xtensa: "NMILEVEL" is an optional feature
Some oddballs cores can be generated without an "NMI" interrupt, in which case core-isa.h will not define XCHAL_NMILEVEL. This code is trying to unconditionally mask interrupts, so XCHAL_EXCM_LEVEL is the pedantically correct choice anyway (NMI's by definition, cannot be masked). Signed-off-by: Andy Ross <andyross@google.com>
This commit is contained in:
parent
6ab7735774
commit
03cafbdaef
1 changed files with 1 additions and 1 deletions
|
@ -364,7 +364,7 @@ void *xtensa_excint1_c(int *interrupted_stack)
|
|||
* thread.
|
||||
*/
|
||||
__asm__ volatile("rsil %0, %1"
|
||||
: "=r" (ignore) : "i"(XCHAL_NMILEVEL));
|
||||
: "=r" (ignore) : "i"(XCHAL_EXCM_LEVEL));
|
||||
|
||||
_current_cpu->nested = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue