aboutsummaryrefslogtreecommitdiff
path: root/i686/lidt.c
diff options
context:
space:
mode:
Diffstat (limited to 'i686/lidt.c')
-rw-r--r--i686/lidt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/i686/lidt.c b/i686/lidt.c
index 5cb66b6..8a70bf3 100644
--- a/i686/lidt.c
+++ b/i686/lidt.c
@@ -41,9 +41,10 @@ idt_install()
for (int i = 0; i <= 0x13; ++i) Gate(&interrupt_table[i], &abort_handler, 0x10);
// irq 0x20~0x2f
+ for (int i = 0x22; i <= 0x2f; ++i) Gate(&interrupt_table[i], &abort_handler, 0x10);
Gate(&interrupt_table[0x20], &irq0x00, 0x10);
Gate(&interrupt_table[0x21], &irq0x01, 0x10);
- for (int i = 0x22; i <= 0x2f; ++i) Gate(&interrupt_table[i], &abort_handler, 0x10);
+ Gate(&interrupt_table[0x2c], &irq0x0c, 0x10);
// syscall 0x80
Gate(&interrupt_table[0x80], &abort_handler, 0x10);