mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 21:04:18 +08:00
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 New Issue
Block a user