From 32a88e354f6936ae0e2ab9c564293a09c6d77902 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 18 Nov 2025 16:04:19 -0500 Subject: kern/amd64: idt: Make idt.h includable in ASM This also moves the interrupt gate defines to the idt.h header so that they can be used within C code Signed-off-by: Ian Moffett --- sys/arch/amd64/cpu/idt.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (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 b7169d8..c430a44 100644 --- a/sys/arch/amd64/cpu/idt.S +++ b/sys/arch/amd64/cpu/idt.S @@ -28,12 +28,10 @@ */ #include +#include #define KERNEL_CS 0x08 -#define INT_GATE 0x8E -#define TRAP_GATE 0x8F - .macro set_trap vector, isr movq \vector, %rdi movq $TRAP_GATE, %rsi -- cgit v1.2.3