mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user