BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / ca4f3abc7b46ecf67b6a72e75989dc6eccead09a / memory

// Related

Nucleus

Barry Multi-core scheduling ca4f3ab (3 years, 3 months ago)
diff --git a/memory/fault.c b/memory/fault.c
index 0ed452d..08a4252 100644
--- a/memory/fault.c
+++ b/memory/fault.c
@@ -20,9 +20,10 @@ early_page_fault_handler(struct InterruptFrame *frame, uint32_t err)
 	uint8_t write   = err & (1 << 1);
 	uint8_t user    = err & (1 << 2);
 	if (!PAGE_ADDR(addr))
-		panic("Null dereference @ %#.8x", frame->eip);
+		panic("Null dereference @ %#.8x (CPU#%d)", frame->eip, CPUID);
 	ASSERT(!present);
-	kprintf("Allocating frame for %#.8x [%#.8x]", addr, frame->eip);
+	kprintf("Allocating frame for %#.8x [%#.8x] CPU#%d",
+	        addr, frame->eip,CPUID);
 	/* Allocate a page */
 	set_page(addr, alloc_frame() | PTE_PRESENT | PTE_WRITE | PTE_GLOBAL);
 }