From 9b238d10e3647369c9193dd33cb76a8ec18834a0 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 26 Nov 2023 18:24:20 -0600 Subject: 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 --- arch/i386/boot/idt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'arch/i386') 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]); -- cgit v1.2.3