From 03e21792989099b0962451899cd8e251d73e4a19 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 22 Feb 2010 16:44:13 +0000 Subject: [PATCH] [NTOS]: Enable high/low memory events notifications. svn path=/trunk/; revision=45655 --- reactos/ntoskrnl/mm/ARM3/pfnlist.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/reactos/ntoskrnl/mm/ARM3/pfnlist.c b/reactos/ntoskrnl/mm/ARM3/pfnlist.c index fe3410920f2..58043400af6 100644 --- a/reactos/ntoskrnl/mm/ARM3/pfnlist.c +++ b/reactos/ntoskrnl/mm/ARM3/pfnlist.c @@ -73,11 +73,14 @@ NTAPI MiInsertZeroListAtBack(IN PFN_NUMBER EntryIndex) { PFN_NUMBER OldBlink; - PMMPFN Pfn1;//, Blink; - //ULONG Color; - //PMMCOLOR_TABLES ColorHead; PMMPFNLIST ListHead; - + PMMPFN Pfn1; +#if 0 + PMMPFN Blink; + ULONG Color; + PMMCOLOR_TABLES ColorHead; +#endif + /* Make sure the PFN lock is held */ ASSERT(KeGetCurrentIrql() == DISPATCH_LEVEL); @@ -115,7 +118,7 @@ MiInsertZeroListAtBack(IN PFN_NUMBER EntryIndex) /* Update the page location */ Pfn1->u3.e1.PageLocation = ZeroedPageList; -#if 0 + /* FIXME: NOT YET Due to caller semantics: Update the available page count */ //MmAvailablePages++; @@ -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; -- 2.17.1