From 1faac72e2514c335e2d5721dce8c9fd1da722062 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 10 Jul 2021 16:17:43 +0200 Subject: add a basic #GP handler --- kernel/idt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel/idt.c') 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); } -- cgit v1.2.3