Make idle_loop noreturn

This commit is contained in:
apio 2022-12-07 14:46:56 +01:00
parent 98a55b2c13
commit b93a208f22
Signed by: apio
GPG Key ID: B8A7D06E42258954
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: