mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
pic32mz_decodeirq() saves the interrupted context to the TCB in g_running_tasks[], but never updated g_running_tasks[] after a context switch. It kept pointing at the Idle task from nx_start(), so every interrupt overwrote the Idle task's saved registers, and after up_exit() set it to NULL no context was saved at all. The next context switch then restored stale registers; on PIC32MZ-W1 the system crashed as soon as the netinit thread exited. Set g_running_tasks[] to this_task() before returning, as the other architectures do. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com> |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| ceva | ||
| dummy | ||
| hc | ||
| mips | ||
| misoc | ||
| or1k | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| z16 | ||
| z80 | ||
| CMakeLists.txt | ||
| Kconfig | ||