ptos/amd64: mmu: Zero each new pagemap level
Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
@@ -164,6 +164,7 @@ MmuPageMapExtract(MMU_VAS *Vas, UPTR VirtualBase, PAGEMAP_LEVEL Level, BOOLEAN A
|
|||||||
PhysicalBase = PFN_TO_ADDRESS(Pfn);
|
PhysicalBase = PFN_TO_ADDRESS(Pfn);
|
||||||
PageMap[Index] = PhysicalBase | (PTE_P | PTE_RW | PTE_US);
|
PageMap[Index] = PhysicalBase | (PTE_P | PTE_RW | PTE_US);
|
||||||
PageMap = PMA_TO_VMA(PhysicalBase);
|
PageMap = PMA_TO_VMA(PhysicalBase);
|
||||||
|
RtlMemSet(PageMap, 0, PAGESIZE);
|
||||||
--CurrentLevel;
|
--CurrentLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user