[kernel] Don't panic on unknown IRQ

On real hardware, spurious IRQs came in before they were set up to be
handled. This should be logged but not fatal.
This commit is contained in:
Justin C. Miller
2021-01-18 13:42:33 -08:00
parent 2a490a1bbc
commit 20ff0ed30b

View File

@@ -292,8 +292,8 @@ irq_handler(cpu_state *regs)
cons->printf("\nReceived unknown IRQ: %d (vec %d)\n", cons->printf("\nReceived unknown IRQ: %d (vec %d)\n",
irq, regs->interrupt); irq, regs->interrupt);
cons->set_color(); cons->set_color();
print_regs(*regs); print_regs(*regs);
_halt();
} }
*reinterpret_cast<uint32_t *>(apic_eoi_addr) = 0; *reinterpret_cast<uint32_t *>(apic_eoi_addr) = 0;