Add a basic scheduler with threads #18

Merged
apio merged 19 commits from threads into restart 2022-12-07 16:11:59 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit b93a208f22 - Show all commits

View File

@ -13,7 +13,7 @@ namespace CPU
[[noreturn]] void efficient_halt();
void idle_loop();
[[noreturn]] void idle_loop();
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
}
void idle_loop()
[[noreturn]] void idle_loop()
{
asm volatile("sti");
loop: