aboutsummaryrefslogtreecommitdiff
path: root/i386/i386at/int_init.c
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2024-01-29 10:06:57 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-01-29 20:02:21 +0100
commit6bca5c2873ef4cfccd8d2ebeedad29c9d5a6ec7f (patch)
tree8ddfc5b93af6151d26df9aa63205bde37ee9f065 /i386/i386at/int_init.c
parentf8d0f98e80b3d7d9b24fa077818113fb0f4b3970 (diff)
downloadgnumach-6bca5c2873ef4cfccd8d2ebeedad29c9d5a6ec7f.tar.gz
gnumach-6bca5c2873ef4cfccd8d2ebeedad29c9d5a6ec7f.tar.bz2
gnumach-6bca5c2873ef4cfccd8d2ebeedad29c9d5a6ec7f.zip
Support up to two IOAPICs with up to 32 GSIs on each
Previously, only IOAPIC[0] was supported. Now this supports up to two IOAPICs. Message-ID: <20240129100652.1262126-1-damien@zamaudio.com>
Diffstat (limited to 'i386/i386at/int_init.c')
-rw-r--r--i386/i386at/int_init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/i386/i386at/int_init.c b/i386/i386at/int_init.c
index d55d7a48..262bef1b 100644
--- a/i386/i386at/int_init.c
+++ b/i386/i386at/int_init.c
@@ -24,6 +24,10 @@
#include <i386at/idt.h>
#include <i386at/int_init.h>
#include <i386/mp_desc.h>
+#include <kern/printf.h>
+#ifdef APIC
+#include <i386/apic.h>
+#endif
/* defined in locore.S */
extern vm_offset_t int_entry_table[];
@@ -37,7 +41,7 @@ int_fill(struct real_gate *myidt)
int nirq = 16;
#else
int base = IOAPIC_INT_BASE;
- int nirq = 24;
+ int nirq = NINTR;
#endif
for (i = 0; i < nirq; i++) {