From 1a8a3bfcad19687c67fb9e7861a71e2345909ce4 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 8 Oct 2025 16:07:33 -0400 Subject: 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 --- src/sys/include/arch/amd64/idt.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sys/include') 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 #include +#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_ */ -- cgit v1.2.3