Kernel/x86 - Added node display to DumpTables, fixed bug in GetPageNode
[tpg/acess2.git] / Kernel / arch / x86 / mm_phys.c
index fc71bd9..b84ceb6 100644 (file)
@@ -530,6 +530,7 @@ int MM_GetPageNode(tPAddr PAddr, void **Node)
        if( MM_GetRefCount(PAddr) == 0 ) {
                return 1;
        }
+       PAddr /= PAGE_SIZE;
        if( !MM_GetPhysAddr( (tVAddr) &gaPageNodes[PAddr] ) ) {
                *Node = NULL;
                return 0;

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