浏览代码

Kernel: Call Processor::are_interrupts_enabled in Scheduler::idle_loop

This expresses the intent better, and we shouldn't be calling global
functions anyway.
Timon Kruiper 2 年之前
父节点
当前提交
352f980ca2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Kernel/Scheduler.cpp

+ 1 - 1
Kernel/Scheduler.cpp

@@ -475,7 +475,7 @@ void Scheduler::idle_loop(void*)
 {
     auto& proc = Processor::current();
     dbgln("Scheduler[{}]: idle loop running", proc.id());
-    VERIFY(are_interrupts_enabled());
+    VERIFY(Processor::are_interrupts_enabled());
 
     for (;;) {
         proc.idle_begin();