WIP: Kevent
This commit is contained in:
parent
94ef9dd14a
commit
616dfbc055
16 changed files with 131 additions and 13 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue