Enable local apic error interrupt on all processors

This commit is contained in:
Jeremy Soller
2022-03-07 13:56:46 -07:00
parent b62496f50e
commit 150717f18e

View File

@@ -266,6 +266,10 @@ pub unsafe fn init_generic(is_bsp: bool, idt: &mut Idt) {
*current_reservations[0].get_mut() |= 0x0003_FFFF_0000_0000;
} else {
// TODO: use_default_irqs! but also the legacy IRQs that are only needed on one CPU
current_idt[49].set_func(irq::lapic_error);
// reserve bit 49
*current_reservations[0].get_mut() |= (1 << 49);
}
use_default_irqs!(current_idt);