mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 10:03:50 +01:00
core/init: avoid context switch with !core_thread
This commit is contained in:
parent
a4fcf219a8
commit
b9a76ea094
@ -106,8 +106,11 @@ void kernel_init(void)
|
||||
main_trampoline, NULL, "main");
|
||||
}
|
||||
else {
|
||||
/* RIOT without threads */
|
||||
irq_enable();
|
||||
main_trampoline(NULL);
|
||||
while (1) {}
|
||||
return;
|
||||
}
|
||||
|
||||
cpu_switch_context_exit();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user