Split Yield and Preempt into separate scheduling functions.

This switch makes the logic for each much easier to parse.
This commit is contained in:
Drew Galbraith 2023-05-29 23:09:39 -07:00
parent 3fee5ac9d7
commit b58186265e
3 changed files with 54 additions and 31 deletions

View file

@ -123,7 +123,7 @@ extern "C" void interrupt_timer(InterruptFrame*) {
dbgln("timer: %us", cnt * 50 / 1000);
}
outb(PIC1_COMMAND, PIC_EOI);
sched::Yield();
sched::Preempt();
}
void EnablePic() {