From: John Hodge Date: Thu, 8 Sep 2011 00:22:47 +0000 (+0800) Subject: Kernel/tpl_phys - Fixed bug in GetPageNode X-Git-Tag: rel0.11~103 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=7062f86d2f5b71a6b5a3be2a1e9d408ffa196680;p=tpg%2Facess2.git Kernel/tpl_phys - Fixed bug in GetPageNode --- diff --git a/Kernel/include/tpl_mm_phys_bitmap.h b/Kernel/include/tpl_mm_phys_bitmap.h index 19ef5096..89c942b0 100644 --- a/Kernel/include/tpl_mm_phys_bitmap.h +++ b/Kernel/include/tpl_mm_phys_bitmap.h @@ -386,8 +386,8 @@ int MM_SetPageNode(tPAddr PAddr, void *Node) int MM_GetPageNode(tPAddr PAddr, void **Node) { - PAddr >>= 12; if( !MM_GetRefCount(PAddr) ) return 1; + PAddr >>= 12; if( !MM_GetPhysAddr( (tVAddr)&gapPageNodes[PAddr] ) ) { *Node = NULL;