[NTOS:MM] When mapping pages for zeroing them, disable cache, enable write through

Idea from Thomas Faber
This commit is contained in:
Jérôme Gardou 2021-08-02 18:48:07 +02:00 committed by Jérôme Gardou
parent 98e62b9bca
commit 789d7a7741

View file

@ -150,6 +150,10 @@ MiMapPagesInZeroSpace(IN PMMPFN Pfn1,
PointerPte += (Offset + 1);
TempPte = ValidKernelPte;
/* Disable cache. Write through */
MI_PAGE_DISABLE_CACHE(&TempPte);
MI_PAGE_WRITE_THROUGH(&TempPte);
/* Make sure the list isn't empty and loop it */
ASSERT(Pfn1 != (PVOID)LIST_HEAD);
while (Pfn1 != (PVOID)LIST_HEAD)