Do not have interrupts enabled during context switch
This commit is contained in:
parent
53a5a9188a
commit
997e229f27
|
@ -158,6 +158,7 @@ pub extern fn kmain() {
|
|||
|
||||
loop {
|
||||
unsafe {
|
||||
interrupt::disable();
|
||||
context::switch();
|
||||
interrupt::enable_and_halt();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue