nuttx/arch
hujun5 657ac8317e arch: fix addrenv_switch changing this_task causing exceptions
After addrenv_switch(), the current running task (this_task) may change due to
deferred work execution. Update all architecture interrupt, syscall, and exit
handlers to re-fetch tcb = this_task() after addrenv_switch(). Ensures scheduler
and context operations use the correct TCB, preventing context corruption and
exceptions across SMP and memory-protected builds.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-01-17 18:23:06 -03:00
..
arm arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
arm64 arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
avr arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
ceva checkstack: fix access overflow when checkstack 2026-01-17 18:04:28 -03:00
dummy
hc arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
mips arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
misoc arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
or1k arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
renesas arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
risc-v arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
sim checkstack: fix access overflow when checkstack 2026-01-17 18:04:28 -03:00
sparc arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
tricore arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
x86 arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
x86_64 arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
xtensa arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
z16 arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
z80 arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
CMakeLists.txt arch/z80: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
Kconfig arm: add CONFIG_NCPUS for AMP mode support 2026-01-16 14:05:24 -03:00