summaryrefslogtreecommitdiff
path: root/kernel/idt.c
diff options
context:
space:
mode:
authordzwdz2021-07-10 16:17:43 +0200
committerdzwdz2021-07-10 16:17:43 +0200
commit1faac72e2514c335e2d5721dce8c9fd1da722062 (patch)
tree37881c60756e6d42daf7999cb4cc110c07f39e36 /kernel/idt.c
parent1cc98d32bf344691c73fcc7b64e2ed2755f17ede (diff)
add a basic #GP handler
Diffstat (limited to 'kernel/idt.c')
-rw-r--r--kernel/idt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/idt.c b/kernel/idt.c
index 96d6d15..65f511f 100644
--- a/kernel/idt.c
+++ b/kernel/idt.c
@@ -53,6 +53,7 @@ static void idt_prepare() {
IDT[i].present = 0;
idt_add(0x08, false, isr_double_fault);
+ idt_add(0x0d, false, isr_general_protection_fault);
idt_add(0x34, false, isr_test_interrupt);
}