From 400a7b22db5ca754f28f5772689c40599435b13e Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 6 Dec 2022 21:22:56 -0500 Subject: [PATCH] Enable local APIC interrupts --- src/hulk/apic.d | 3 +++ 1 file changed, 3 insertions(+) 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; } }