Added debug to MM_PageFault
authorJohn Hodge <[email protected]>
Sun, 27 Sep 2009 03:50:43 +0000 (11:50 +0800)
committerJohn Hodge <[email protected]>
Sun, 27 Sep 2009 03:50:43 +0000 (11:50 +0800)
Kernel/arch/x86/mm_virt.c

index b2520b5..cbec8e6 100644 (file)
@@ -117,6 +117,7 @@ void MM_PageFault(Uint Addr, Uint ErrorCode, tRegs *Regs)
                        gaPageTable[Addr>>12] &= PF_USER;
                        gaPageTable[Addr>>12] |= paddr|PF_PRESENT|PF_WRITE;
                }
+               LOG("Duplicated page at %p to 0x%x", Addr&~0xFFF, gaPageTable[Addr>>12]);
                INVLPG( Addr & ~0xFFF );
                //LEAVE('-')
                return;

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