Verbosity in MM_PageFault for user Pagefaults
authorJohn Hodge <[email protected]>
Wed, 30 Sep 2009 12:44:46 +0000 (20:44 +0800)
committerJohn Hodge <[email protected]>
Wed, 30 Sep 2009 12:44:46 +0000 (20:44 +0800)
Kernel/arch/x86/mm_virt.c

index 3d3fee1..1fadd4b 100644 (file)
@@ -127,6 +127,7 @@ void MM_PageFault(Uint Addr, Uint ErrorCode, tRegs *Regs)
        
        // If it was a user, tell the thread handler
        if(ErrorCode & 4) {
+               Warning("User Pagefault: Instruction at %p accessed %p\n", Regs->eip, Addr);
                Threads_SegFault(Addr);
                return ;
        }

UCC git Repository :: git.ucc.asn.au