diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-08 16:07:33 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-08 16:07:33 -0400 |
commit | 1a8a3bfcad19687c67fb9e7861a71e2345909ce4 (patch) | |
tree | e230b455d241ca78b499e0369e7e6cab5532c3c0 /src/sys/arch/amd64/mainbus/intr.c | |
parent | 85cd8a1ef0436a83505d341f331a689a135e69da (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/arch/amd64/mainbus/intr.c')
-rw-r--r-- | src/sys/arch/amd64/mainbus/intr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sys/arch/amd64/mainbus/intr.c b/src/sys/arch/amd64/mainbus/intr.c index 01d4f54..d2215b4 100644 --- a/src/sys/arch/amd64/mainbus/intr.c +++ b/src/sys/arch/amd64/mainbus/intr.c @@ -58,7 +58,11 @@ intr_register(const struct intr_hand *ih) return NULL; } - vec = MAX(ih->ipl << IPL_SHIFT, 0x20); + /* + * The first 0x20 to 0x5F interrupt vectors are + * reserved for I/O APIC input pins + */ + vec = MAX(ih->ipl << IPL_SHIFT, 0x60); /* * We can have up to 15 interrupt vectors per |