summaryrefslogtreecommitdiff
path: root/i386/i386at/idt.h
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386at/idt.h')
-rw-r--r--i386/i386at/idt.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/i386/i386at/idt.h b/i386/i386at/idt.h
index fd2f62d8..ac065aef 100644
--- a/i386/i386at/idt.h
+++ b/i386/i386at/idt.h
@@ -24,12 +24,19 @@
#ifndef _I386AT_IDT_
#define _I386AT_IDT_
-/* On a standard PC, we only need 16 interrupt vectors,
- because that's all the PIC hardware supports. */
-#define IDTSZ (0x20+0x10)
+/* There are 256 interrupt vectors on x86,
+ * the first 32 are taken by cpu faults */
+#define IDTSZ (0x100)
+/* PIC sits at 0x20-0x2f */
#define PIC_INT_BASE 0x20
+/* IOAPIC sits at 0x30-0x47 */
+#define IOAPIC_INT_BASE 0x30
+
+/* IOAPIC spurious interrupt vector set to 0xff */
+#define IOAPIC_SPURIOUS_BASE 0xff
+
#include <i386/idt-gen.h>
#ifndef __ASSEMBLER__