summaryrefslogtreecommitdiff
path: root/src/sys/include/arch/amd64/idt.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-08 16:07:33 -0400
committerIan Moffett <ian@osmora.org>2025-10-08 16:07:33 -0400
commit1a8a3bfcad19687c67fb9e7861a71e2345909ce4 (patch)
treee230b455d241ca78b499e0369e7e6cab5532c3c0 /src/sys/include/arch/amd64/idt.h
parent85cd8a1ef0436a83505d341f331a689a135e69da (diff)
kern/amd64: Reserve 64 vectors for I/O APIC inputs
This commit reserves the first 64 vectors for the I/O APIC input lines. During an IRQ, each handler will be called to see which one handles it. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/arch/amd64/idt.h')
-rw-r--r--src/sys/include/arch/amd64/idt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys/include/arch/amd64/idt.h b/src/sys/include/arch/amd64/idt.h
index 132550c..e7bca9f 100644
--- a/src/sys/include/arch/amd64/idt.h
+++ b/src/sys/include/arch/amd64/idt.h
@@ -30,13 +30,16 @@
#ifndef _MACHINE_IDT_H_
#define _MACHINE_IDT_H_ 1
+#ifndef __ASSEMBLER__
#include <sys/types.h>
#include <sys/cdefs.h>
+#endif
#define IDT_INT_GATE 0x8E
#define IDT_TRAP_GATE 0x8F
#define IDT_USER_GATE 0xEE
+#ifndef __ASSEMBLER__
#define ISR(p) ((uintptr_t)p)
/*
@@ -96,4 +99,5 @@ void idt_set_desc(uint8_t vector, uint8_t type, uintptr_t isr, uint8_t ist);
*/
void idt_load(void);
+#endif /* __ASSEMBLER__ */
#endif /* !_MACHINE_IDT_H_ */