summaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpu')
-rw-r--r--kernel/cpu/idt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/cpu/idt.c b/kernel/cpu/idt.c
index 42cf651..bf4b499 100644
--- a/kernel/cpu/idt.c
+++ b/kernel/cpu/idt.c
@@ -120,8 +120,7 @@ void idt_exception_handler(uint64_t exception, uint64_t code,
case EX_PAGE_FAULT:
// page faults store the offending address in cr2
__asm__ volatile("mov %%cr2, %0" : "=r"(cr2));
- if (!kload_page((void *)cr2))
- return;
+ break;
}
kputs("\n\n!!! EXCEPTION !!!\n");