+int MM_GetRefCount( tPAddr PAddr )
+{
+ PAddr >>= 12;
+
+ if( PAddr >> 12 > giMaxPhysPage ) return 0;
+
+ if( gaMultiBitmap[ PAddr >> 6 ] & (1LL << (PAddr&63)) ) {
+ return gaiPageReferences[PAddr];
+ }
+
+ if( gaMainBitmap[ PAddr >> 6 ] & (1LL << (PAddr&63)) )
+ {
+ return 1;
+ }
+ return 0;
+}
+