mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-18 02:53:52 +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");
|
main_trampoline, NULL, "main");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
/* RIOT without threads */
|
||||||
irq_enable();
|
irq_enable();
|
||||||
main_trampoline(NULL);
|
main_trampoline(NULL);
|
||||||
|
while (1) {}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu_switch_context_exit();
|
cpu_switch_context_exit();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user