After the signals have been delivered, the local irqs need to be disabled until the context switch. But just calling leave_critical_section(regs[REG_PS]) will enable them if they were enabled in the context. Any interrupt on this cpu before xtensa_context_restore() would set the rtcb->xcp.regs to NULL, causing a crash in context restore. Fix this by calling leave_critical_section(up_irq_save()) instead. Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| CMakeLists.txt | ||
| Kconfig | ||