WIP: Kevent

This commit is contained in:
Jeremy Soller 2016-09-23 15:47:53 -06:00
parent 94ef9dd14a
commit 616dfbc055
16 changed files with 131 additions and 13 deletions

View file

@ -162,8 +162,11 @@ pub extern fn kmain() {
loop {
unsafe {
interrupt::disable();
context::switch();
interrupt::enable_and_nop();
if context::switch() {
interrupt::enable_and_nop();
} else {
interrupt::enable_and_halt();
}
}
}
}