Kernel: initialize every irq handler to nullptr

This commit is contained in:
Bananymous 2022-12-13 00:57:48 +02:00
parent 9c72f7255a
commit f6def7a747
1 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ void handle_irq()
{
uint16_t isr = PIC::get_isr();
if (!isr) {
kprint("Spurious IRQ\n");
//kprint("Spurious IRQ\n");
return;
}
@ -153,8 +153,8 @@ namespace IDT
REGISTER_HANDLER(0x0f);
REGISTER_HANDLER(0x10);
for (uint8_t i = 0; i < sizeof(s_irq_handlers) / sizeof(*s_irq_handlers); i++)
s_irq_handlers[i] = nullptr;
for (uint8_t i = 0; i < 16; i++)
register_irq_handler(i, nullptr);
flush_idt();
}