[NTOS]: Enable high/low memory events notifications.
[reactos.git] / reactos / ntoskrnl / mm / ARM3 / pfnlist.c
index fa0602e..5804340 100644 (file)
@@ -73,11 +73,14 @@ NTAPI
 MiInsertZeroListAtBack(IN PFN_NUMBER EntryIndex)
 {
     PFN_NUMBER OldBlink;
-    PMMPFN Pfn1, Blink;
+    PMMPFNLIST ListHead;
+    PMMPFN Pfn1;
+#if 0
+    PMMPFN Blink;
     ULONG Color;
     PMMCOLOR_TABLES ColorHead;
-    PMMPFNLIST ListHead;
-    
+#endif
+
     /* Make sure the PFN lock is held */
     ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL);
     
@@ -92,7 +95,7 @@ MiInsertZeroListAtBack(IN PFN_NUMBER EntryIndex)
     /* Use the zero list */
     ListHead = &MmZeroedPageListHead;
     ListHead->Total++;
-         
+
     /* Get the back link */
     OldBlink = ListHead->Blink;
     if (OldBlink != LIST_HEAD)
@@ -130,7 +133,7 @@ MiInsertZeroListAtBack(IN PFN_NUMBER EntryIndex)
         /* Otherwise check if we reached the high threshold and signal the event */
         KeSetEvent(MiHighMemoryEvent, 0, FALSE);
     }
-    
+#if 0
     /* Get the page color */
     Color = EntryIndex & MmSecondaryColorMask;
 
@@ -158,6 +161,7 @@ MiInsertZeroListAtBack(IN PFN_NUMBER EntryIndex)
     
     /* And increase the count in the colored list */
     ColorHead->Count++;
+#endif
 }
 
 VOID