[NTOS:MM] Properly track system process hyper space PDE page

This commit is contained in:
Jérôme Gardou
2021-04-08 15:40:37 +02:00
committed by Jérôme Gardou
parent 370982aa1d
commit 6c027d28f9
+1
View File
@@ -498,6 +498,7 @@ MiInitMachineDependent(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
TempPde = ValidKernelPdeLocal;
TempPde.u.Hard.PageFrameNumber = PageFrameIndex;
MI_WRITE_VALID_PTE(StartPde, TempPde);
PsGetCurrentProcess()->Pcb.DirectoryTableBase[1] = PageFrameIndex << PAGE_SHIFT;
/* Flush the TLB */
KeFlushCurrentTb();