[NTOS:MM] Implement proper refcounting of page tables on amd64

CORE-17552
This commit is contained in:
Jérôme Gardou 2021-05-28 16:58:59 +02:00 committed by Jérôme Gardou
parent 3aa346c21f
commit c8fb3f7514
8 changed files with 217 additions and 68 deletions

View file

@ -879,8 +879,19 @@ typedef struct _MMWSL
PVOID HighestPermittedHashAddress;
ULONG NumberOfImageWaiters;
ULONG VadBitMapHint;
#ifndef _M_AMD64
USHORT UsedPageTableEntries[768];
ULONG CommittedPageTables[24];
#else
VOID* HighestUserAddress;
ULONG MaximumUserPageTablePages;
ULONG MaximumUserPageDirectoryPages;
ULONG* CommittedPageTables;
ULONG NumberOfCommittedPageDirectories;
ULONG* CommittedPageDirectories;
ULONG NumberOfCommittedPageDirectoryParents;
ULONGLONG CommittedPageDirectoryParents[1];
#endif
} MMWSL, *PMMWSL;
//