Documenting use of enable_and_halt(). (#21)

This commit is contained in:
David Teller
2016-10-25 00:03:03 +02:00
committed by Jeremy Soller
parent e7a4b786b0
commit 580f30e520

1
lib.rs
View File

@@ -178,6 +178,7 @@ pub extern fn kmain(cpus: usize) {
if context::switch() {
interrupt::enable_and_nop();
} else {
// Enable interrupts, then halt CPU (to save power) until the next interrupt is actually fired.
interrupt::enable_and_halt();
}
}