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

This expresses the intent better, and we shouldn't be calling global
functions anyway.
This commit is contained in:
Timon Kruiper 2022-10-17 19:59:48 +02:00 committed by Linus Groh
parent c962cfdc28
commit 352f980ca2
Notes: sideshowbarker 2024-07-17 05:22:57 +09:00

View File

@ -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();