Make idle_loop noreturn

This commit is contained in:
apio 2022-12-07 14:46:56 +01:00 committed by Gitea
parent f65ed465c4
commit 5d988c088f
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ namespace CPU
[[noreturn]] void efficient_halt(); [[noreturn]] void efficient_halt();
void idle_loop(); [[noreturn]] void idle_loop();
void switch_kernel_stack(u64 top); void switch_kernel_stack(u64 top);

View File

@ -430,7 +430,7 @@ namespace CPU
goto loop; // Safeguard: if we ever wake up, start our low-power rest again goto loop; // Safeguard: if we ever wake up, start our low-power rest again
} }
void idle_loop() [[noreturn]] void idle_loop()
{ {
asm volatile("sti"); asm volatile("sti");
loop: loop: