1
0
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:
Kaspar Schleiser 2019-09-16 16:51:39 +02:00 committed by GitHub
commit 071c2b2c5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}