From 6eec01d1f5deb679ac2b3037c10012587336800e Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 24 Apr 2017 09:45:03 +0000 Subject: [PATCH] [NTOS:MM] - In MiFlushTbAndCapture, only print a fixme if we actually need to do something. CORE-12074 #resolve svn path=/trunk/; revision=74400 --- reactos/ntoskrnl/mm/ARM3/section.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/mm/ARM3/section.c b/reactos/ntoskrnl/mm/ARM3/section.c index 4d274ba7cfa..30abd7e9301 100644 --- a/reactos/ntoskrnl/mm/ARM3/section.c +++ b/reactos/ntoskrnl/mm/ARM3/section.c @@ -1956,7 +1956,7 @@ MiFlushTbAndCapture(IN PMMVAD FoundVad, IN PMMPTE PointerPte, IN ULONG ProtectionMask, IN PMMPFN Pfn1, - IN BOOLEAN CaptureDirtyBit) + IN BOOLEAN UpdateDirty) { MMPTE TempPte, PreviousPte; KIRQL OldIrql; @@ -2032,7 +2032,13 @@ MiFlushTbAndCapture(IN PMMVAD FoundVad, // // Windows updates the relevant PFN1 information, we currently don't. // - if (CaptureDirtyBit) DPRINT1("Warning, not handling dirty bit\n"); + if (UpdateDirty && PreviousPte.u.Hard.Dirty) + { + if (!Pfn1->u3.e1.Modified) + { + DPRINT1("FIXME: Mark PFN as dirty\n"); + } + } // // Not supported in ARM3