summaryrefslogtreecommitdiff
path: root/arch/i386/include/kernel/idt.h
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2022-01-15 16:11:30 -0600
committerDanny Holman <dholman@gymli.org>2022-01-15 16:11:30 -0600
commitc83d7bdcb60859f232e0fa6994ffba01509aba2e (patch)
tree66425a7362be26d27acf12015c7b3353a0e4159c /arch/i386/include/kernel/idt.h
parent45e882197b3c2ab97d671bad87c995dff0380661 (diff)
arch: i386: simplify IDT setup
Simplify the interrupt descriptor table setup and frame assembly. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/include/kernel/idt.h')
-rw-r--r--arch/i386/include/kernel/idt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/i386/include/kernel/idt.h b/arch/i386/include/kernel/idt.h
index 699eb96..190e15e 100644
--- a/arch/i386/include/kernel/idt.h
+++ b/arch/i386/include/kernel/idt.h
@@ -10,6 +10,7 @@
#define SEGMENT_STORAGE 0x00
#define SEGMENT_INTERRUPT 0x0E
#define IDT_EXCEPTION (SEGMENT_PRESENT | SEGMENT_INTERRUPT)
+#define IDT_INTERRUPT (SEGMENT_PRESENT | SEGMENT_INTERRUPT)
#define IDT_MAX_DESCRIPTORS 256