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 {
|
loop {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
interrupt::disable();
|
||||||
context::switch();
|
context::switch();
|
||||||
interrupt::enable_and_halt();
|
interrupt::enable_and_halt();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue