diff --git a/arch/mips/src/pic32mx/pic32mx-decodeirq.c b/arch/mips/src/pic32mx/pic32mx-decodeirq.c index d756570342..9649fe5376 100644 --- a/arch/mips/src/pic32mx/pic32mx-decodeirq.c +++ b/arch/mips/src/pic32mx/pic32mx-decodeirq.c @@ -152,6 +152,12 @@ uint32_t *pic32mx_decodeirq(uint32_t *regs) */ #ifdef CONFIG_PIC32MX_NESTED_INTERRUPTS + /* I think there are some task switching issues here. You should not + * enable nested interrupts unless you are ready to deal with the + * complexities of nested context switching. The logic here is probably + * insufficient. + */ + current_regs = savestate; if (current_regs == NULL) {