From 6f720f67383fee1e143caf04cc537a11a170d7c6 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 28 Apr 2025 11:34:35 -0400 Subject: fix pic eoi in timer --- kernel/cpu/idt.S | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/cpu/idt.S b/kernel/cpu/idt.S index 05c34f5..05f80c7 100644 --- a/kernel/cpu/idt.S +++ b/kernel/cpu/idt.S @@ -135,13 +135,15 @@ isr_stub_\num: ISRRestore .endm +# we have to send eoi first since +# idt_pic_timer may not return .macro PICTimer num .align 8 isr_stub_\num: ISRSave - callq idt_pic_timer - movq $\num, %rdi callq idt_pic_eoi + movq $\num, %rdi + callq idt_pic_timer ISRRestore .endm -- cgit v1.2.3-freya