Nucleus
Barry Send APIC end of interrupt e07c7c5 (3 years, 3 months ago)diff --git a/kernel/idt.c b/kernel/idt.c index 52076a8..8a7f809 100644 --- a/kernel/idt.c +++ b/kernel/idt.c @@ -46,7 +46,8 @@ exc_handler(int num, struct InterruptFrame *frame, uint32_t err) ASSERT(exceptions[num]); exceptions[num](frame, err); - /* TODO: Send APIC EOI */ + /* Send APIC EOI */ + LAPIC(0xB0) = 0; } /* First level generic interrupt handler */ @@ -60,7 +61,8 @@ int_handler(int num, struct InterruptFrame *frame) if (num >= 8) outb(0xA0, 0x20); outb(0x20, 0x20); - /* TODO: Send APIC EOI*/ + /* Send APIC EOI*/ + LAPIC(0xB0) = 0; } /* Exceptions */