Nucleus
Barry Preemptive and lockless scheduler a1eaf26 (3 years, 1 month ago)
diff --git a/memory/fault.c b/memory/fault.c
index d8accb6..7dfae10 100644
--- a/memory/fault.c
+++ b/memory/fault.c
@@ -184,8 +184,8 @@ page_fault_handler(struct InterruptFrame *frame)
/* Iterate VM Regions */
VMRegion *region = find_region(addr);
- /* Not in a region */
if (__builtin_expect(!region, 0)) {
+ /* Not in a region */
page_t pg = get_page(addr);
panic("Page Fault [%d:%d] (%#.8x -> %#.8x [tbl:%d, pg:%d][%#.8x], %s, %s, %s)",
current->tgid, current->tid, frame->eip,