1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-18 11:03:50 +01:00

core/init: avoid context switch with !core_thread

This commit is contained in:
Benjamin Valentin 2024-01-09 18:59:28 +01:00
parent a4fcf219a8
commit b9a76ea094

View File

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