Do not have interrupts enabled during context switch

This commit is contained in:
Jeremy Soller 2016-09-15 08:40:16 -06:00
parent 53a5a9188a
commit 997e229f27

View file

@ -158,6 +158,7 @@ pub extern fn kmain() {
loop {
unsafe {
interrupt::disable();
context::switch();
interrupt::enable_and_halt();
}