mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
Merge pull request #12109 from nmeum/pr/riscv_context_switch
cpu/fe310: don't call thread_yield when sched_active_thread is invalid
This commit is contained in:
commit
071c2b2c5f
@ -334,8 +334,8 @@ void cpu_switch_context_exit(void)
|
||||
/* enable interrupts */
|
||||
irq_enable();
|
||||
|
||||
/* start the thread */
|
||||
thread_yield();
|
||||
/* start the thread by triggering a context switch */
|
||||
thread_yield_higher();
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user