BarryServer : Git

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

// Related

Nucleus

Barry Per-CPU Scheduler bb0cb77 (3 years, 2 months ago)
diff --git a/memory/copy.S b/memory/copy.S
index 1d1c6a3..65aa576 100644
--- a/memory/copy.S
+++ b/memory/copy.S
@@ -29,7 +29,6 @@ copy_page_frame:
 	mov %cr0, %edx
 	or $0x80000000, %edx
 	mov %edx, %cr0
-	sti
 	popf
 	pop %ebx
 	ret
diff --git a/memory/fault.c b/memory/fault.c
index efc8b66..1de4939 100644
--- a/memory/fault.c
+++ b/memory/fault.c
@@ -213,7 +213,7 @@ early_page_fault_handler(struct InterruptFrame *frame)
 	uint8_t write   = frame->err & (1 << 1);
 	uint8_t user    = frame->err & (1 << 2);
 	if (!PAGE_ADDR(addr))
-		panic("Null dereference @ %#.8x (CPU#%d)", frame->eip, cpu->id);
+		panic("Null dereference @ %#.8x -> %#.8x", frame->eip, addr);
 	ASSERT(!present);
 	kprintf("Allocating frame for %#.8x [%#.8x] CPU#%d",
 	        addr, frame->eip, cpu->id);