summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/cpu/idt.S
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-11-18 16:04:19 -0500
committerIan Moffett <ian@osmora.org>2025-11-18 16:04:19 -0500
commit32a88e354f6936ae0e2ab9c564293a09c6d77902 (patch)
treec907292e7fc72bf4266d1dfd3217811cc64b9fa4 /sys/arch/amd64/cpu/idt.S
parentfb57d2c9e35ce9f6e6bdc79c2366915dc9034db1 (diff)
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 <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/cpu/idt.S')
-rw-r--r--sys/arch/amd64/cpu/idt.S4
1 files changed, 1 insertions, 3 deletions
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 <md/kfence.h>
+#include <md/idt.h>
#define KERNEL_CS 0x08
-#define INT_GATE 0x8E
-#define TRAP_GATE 0x8F
-
.macro set_trap vector, isr
movq \vector, %rdi
movq $TRAP_GATE, %rsi