diff --git a/src/hulk/apic.d b/src/hulk/apic.d index 6ca50cd..a98b2e7 100644 --- a/src/hulk/apic.d +++ b/src/hulk/apic.d @@ -57,5 +57,8 @@ struct apic PT_WRITABLE | PT_WRITE_THROUGH | PT_DISABLE_CACHE | PT_NO_EXECUTE); klog.writefln("LAPIC ID: 0x%08x", apic_registers.lapic_id.value); klog.writefln("LAPIC version: 0x%08x", apic_registers.lapic_version.value); + /* Enable local APIC to receive interrupts and set spurious interrupt + * vector to 0xFF. */ + apic_registers.spurious_interrupt_vector.value = 0x1FFu; } }