walnux/arch/xtensa
Jukka Laitinen 50d94863f2 arch/xtensa: Fix a race condition in xtensa_sig_deliver for SMP
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>
2025-08-01 08:54:39 -03:00
..
include xtensa/isa: fix build break if compiler without ISA - XCHAL_HAVE_THREADPTR support 2025-07-21 12:56:31 +02:00
src arch/xtensa: Fix a race condition in xtensa_sig_deliver for SMP 2025-08-01 08:54:39 -03:00
CMakeLists.txt cmake:implement CMake build of xtensa arch 2024-11-02 18:08:38 +08:00
Kconfig style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00