Documenting use of enable_and_halt()
. (#21)
This commit is contained in:
parent
9334cb0b78
commit
76ee483cc9
|
@ -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 a new issue