summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2023-11-26 18:24:20 -0600
committerDanny Holman <dholman@gymli.org>2023-11-26 18:24:20 -0600
commit9b238d10e3647369c9193dd33cb76a8ec18834a0 (patch)
tree5f33a2111afb5aff3a7ef84cab03778a501d07d4
parentd38cf7583d06283dc9647684ccc478a4527a93b5 (diff)
arch: i386: idt.c: call the page fault handler
Call the page fault handler when a page fault occurs instead of just dumping the registers and halting. Signed-off-by: Danny Holman <dholman@gymli.org>
-rw-r--r--arch/i386/boot/idt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/i386/boot/idt.c b/arch/i386/boot/idt.c
index 61cb709..d4251eb 100644
--- a/arch/i386/boot/idt.c
+++ b/arch/i386/boot/idt.c
@@ -49,12 +49,10 @@ void halt_catch_fire(struct isr_frame *frame) {
while (1);
}
-__attribute__((noreturn))
void exception_handler(struct isr_frame *frame) {
switch (frame->vector) {
case 0x0E:
- kprintf("PAGE FAULT\n");
- halt_catch_fire(frame);
+ page_fault_handler(frame);
break;
default:
kprintf("Unhandled exception: %s\n", exceptions[frame->vector]);