summaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-23 13:57:18 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-23 13:57:18 -0400
commit974fcf5d87ee315601f797e609b1030ef5b329b8 (patch)
tree9dfad38f5b25fba41e1529008c91367a960c8f7f /kernel/cpu
parentsome paging updates (more to come) (diff)
downloadcomus-974fcf5d87ee315601f797e609b1030ef5b329b8.tar.gz
comus-974fcf5d87ee315601f797e609b1030ef5b329b8.tar.bz2
comus-974fcf5d87ee315601f797e609b1030ef5b329b8.zip
update paging code
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");