Make idle_loop noreturn
This commit is contained in:
parent
98a55b2c13
commit
b93a208f22
@ -13,7 +13,7 @@ namespace CPU
|
||||
|
||||
[[noreturn]] void efficient_halt();
|
||||
|
||||
void idle_loop();
|
||||
[[noreturn]] void idle_loop();
|
||||
|
||||
void switch_kernel_stack(u64 top);
|
||||
|
||||
|
@ -430,7 +430,7 @@ namespace CPU
|
||||
goto loop; // Safeguard: if we ever wake up, start our low-power rest again
|
||||
}
|
||||
|
||||
void idle_loop()
|
||||
[[noreturn]] void idle_loop()
|
||||
{
|
||||
asm volatile("sti");
|
||||
loop:
|
||||
|
Loading…
Reference in New Issue
Block a user