nuttx/arch/mips/src/mips32
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
..
fork.S arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
Kconfig sched/task/fork: add fork implementation 2023-07-12 02:27:37 +08:00
mips32-memorymap.h arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_cache.S arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_copystate.c arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_doirq.c arch: fix addrenv_switch changing this_task causing exceptions 2026-01-17 18:23:06 -03:00
mips_fork.c sched:use tcb_s inside of task_tcb_s , remove all cast 2025-12-22 17:55:45 +08:00
mips_fork.h arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_initialstate.c arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_irq.c arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_registerdump.c arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
mips_saveusercontext.c arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_schedulesigaction.c Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
mips_sigdeliver.c Revert "Reduce the size of tcb by four bytes." 2025-05-27 16:30:35 +08:00
mips_swint0.c arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
mips_switchcontext.c arch: replace all nxsched_suspend/resume_*** with nxsched_switch_context 2025-09-25 16:40:23 +08:00
mips_syscall0.S arch/misps: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
Toolchain.defs arch/Toolchain.defs: use _start entry 2025-12-16 13:07:37 -03:00