mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-10 21:48:53 +08:00
Merge branch 'master' of https://github.com/redox-os/kernel
This commit is contained in:
commit
268c859fd6
@ -178,6 +178,7 @@ pub extern fn kmain(cpus: usize) {
|
|||||||
if context::switch() {
|
if context::switch() {
|
||||||
interrupt::enable_and_nop();
|
interrupt::enable_and_nop();
|
||||||
} else {
|
} else {
|
||||||
|
// Enable interrupts, then halt CPU (to save power) until the next interrupt is actually fired.
|
||||||
interrupt::enable_and_halt();
|
interrupt::enable_and_halt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user