From 0527ef090e4a5ff2dd8dc32170d505c44ee015fa Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 18 Nov 2025 16:05:25 -0500 Subject: kern/amd64: lapic: Add Local APIC timer interface This commit adds an interface to perform a oneshot operation with the Local APIC timer as well as providing a stub interrupt service routine for it. Signed-off-by: Ian Moffett --- sys/arch/amd64/cpu/idt.S | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/arch/amd64/cpu/idt.S') diff --git a/sys/arch/amd64/cpu/idt.S b/sys/arch/amd64/cpu/idt.S index c430a44..729d958 100644 --- a/sys/arch/amd64/cpu/idt.S +++ b/sys/arch/amd64/cpu/idt.S @@ -306,6 +306,15 @@ page_fault: jmp 1b hlt + .globl lapic_tmr_isr +lapic_tmr_isr: + KFENCE + push_frame 0x81 + nop + pop_frame 0x81 + KFENCE + iretq + .section .data .align 8 IDT: -- cgit v1.2.3