Kernel: Make PIT reserve its IRQ

PIT did not reserve IRQ leading to kernel panic if it was being
initialized.
This commit is contained in:
Bananymous 2024-04-18 13:34:28 +03:00
parent 1479b42112
commit 34b10f61ce
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ namespace Kernel
IO::outb(TIMER0_CTL, (timer_reload >> 0) & 0xff);
IO::outb(TIMER0_CTL, (timer_reload >> 8) & 0xff);
MUST(InterruptController::get().reserve_irq(PIT_IRQ));
set_irq(PIT_IRQ);
enable_interrupt();
}