mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[NTOS:MM] When mapping pages for zeroing them, disable cache, enable write through
Idea from Thomas Faber
This commit is contained in:
parent
98e62b9bca
commit
789d7a7741
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue