mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
0e724e3d5d
As the comment above cpu_switch_context_exit notes: sched_active_thread is not valid when cpu_switch_context_exit() is called. Unfortunately, thread_yield(), which is called directly by cpu_switch_context_exit(), uses sched_active_thread possibly resulting in a null pointer dereference. Solution: Trigger a software interrupt to perform a context switch and let sched_run() determine the next valid thread from there. |
||
---|---|---|
.. | ||
include | ||
ldscripts | ||
nano | ||
periph | ||
vendor | ||
context_frame.c | ||
cpu.c | ||
intr.S | ||
Makefile | ||
Makefile.dep | ||
Makefile.features | ||
Makefile.include | ||
start.S |