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:
parent
1479b42112
commit
34b10f61ce
|
@ -47,6 +47,7 @@ namespace Kernel
|
||||||
IO::outb(TIMER0_CTL, (timer_reload >> 0) & 0xff);
|
IO::outb(TIMER0_CTL, (timer_reload >> 0) & 0xff);
|
||||||
IO::outb(TIMER0_CTL, (timer_reload >> 8) & 0xff);
|
IO::outb(TIMER0_CTL, (timer_reload >> 8) & 0xff);
|
||||||
|
|
||||||
|
MUST(InterruptController::get().reserve_irq(PIT_IRQ));
|
||||||
set_irq(PIT_IRQ);
|
set_irq(PIT_IRQ);
|
||||||
enable_interrupt();
|
enable_interrupt();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue