Kernel: Sleep now actually sleeps and allows idling

This commit is contained in:
2023-02-19 17:53:29 +02:00
parent 66a4b69a29
commit 1bd8b0fe5c
10 changed files with 101 additions and 72 deletions

View File

@@ -126,7 +126,9 @@ namespace IDT
dprintln("no handler for irq 0x{2H}\n", irq);
}
InterruptController::get().eoi(irq);
// NOTE: Scheduler sends PIT eoi's
if (irq != PIT_IRQ)
InterruptController::get().eoi(irq);
}
static void flush_idt()