Split Yield and Preempt into separate scheduling functions.
This switch makes the logic for each much easier to parse.
This commit is contained in:
parent
3fee5ac9d7
commit
b58186265e
3 changed files with 54 additions and 31 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue