mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Merge pull request #922 from phil-opp/post-12-fix
The `enable_interrupts_and_hlt` function was renamed to `enable_and_hlt`
This commit is contained in:
@@ -62,11 +62,11 @@ impl Executor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn sleep_if_idle(&self) {
|
fn sleep_if_idle(&self) {
|
||||||
use x86_64::instructions::interrupts::{self, enable_interrupts_and_hlt};
|
use x86_64::instructions::interrupts::{self, enable_and_hlt};
|
||||||
|
|
||||||
interrupts::disable();
|
interrupts::disable();
|
||||||
if self.task_queue.is_empty() {
|
if self.task_queue.is_empty() {
|
||||||
enable_interrupts_and_hlt();
|
enable_and_hlt();
|
||||||
} else {
|
} else {
|
||||||
interrupts::enable();
|
interrupts::enable();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user