Author: fireball Date: Thu Aug 9 20:19:52 2012 New Revision: 57055
URL: http://svn.reactos.org/svn/reactos?rev=57055&view=rev Log: [NTOS/MM] - Hack away UsedPageTable referencing in MiProtectVirtualMemory for now to help testman.
Modified: trunk/reactos/ntoskrnl/mm/ARM3/virtual.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/virtual.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/virtual.c?... ============================================================================== --- trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/mm/ARM3/virtual.c [iso-8859-1] Thu Aug 9 20:19:52 2012 @@ -1763,7 +1763,7 @@ ULONG_PTR StartingAddress, EndingAddress; PMMPTE PointerPde, PointerPte, LastPte; MMPTE PteContents; - PUSHORT UsedPageTableEntries; + //PUSHORT UsedPageTableEntries; PMMPFN Pfn1; ULONG ProtectionMask; NTSTATUS Status = STATUS_SUCCESS; @@ -1894,9 +1894,10 @@ { /* This used to be a zero PTE and it no longer is, so we must add a reference to the pagetable. */ - UsedPageTableEntries = &MmWorkingSetList->UsedPageTableEntries[MiGetPdeOffset(MiPteToAddress(PointerPte))]; - (*UsedPageTableEntries)++; - ASSERT((*UsedPageTableEntries) <= PTE_COUNT); + //UsedPageTableEntries = &MmWorkingSetList->UsedPageTableEntries[MiGetPdeOffset(MiPteToAddress(PointerPte))]; + //(*UsedPageTableEntries)++; + //ASSERT((*UsedPageTableEntries) <= PTE_COUNT); + DPRINT1("HACK: Not increasing UsedPageTableEntries count!\n"); } else if (PteContents.u.Hard.Valid == 1) { @@ -1913,14 +1914,16 @@ /* TODO */ UNIMPLEMENTED; } - - /* Write the protection mask and write it with a TLB flush */ - Pfn1->OriginalPte.u.Soft.Protection = ProtectionMask; - MiFlushTbAndCapture(Vad, - PointerPte, - ProtectionMask, - Pfn1, - TRUE); + else + { + /* Write the protection mask and write it with a TLB flush */ + Pfn1->OriginalPte.u.Soft.Protection = ProtectionMask; + MiFlushTbAndCapture(Vad, + PointerPte, + ProtectionMask, + Pfn1, + TRUE); + } } else {