Add MM::PageMap::GetXpaStatus() for querying PML level
All checks were successful
Builds / ExectOS (amd64, release) (push) Successful in 27s
Builds / ExectOS (amd64, debug) (push) Successful in 28s
Builds / ExectOS (i686, release) (push) Successful in 26s
Builds / ExectOS (i686, debug) (push) Successful in 27s

This commit is contained in:
2025-11-29 23:45:00 +01:00
parent 931586eebd
commit 4265ae92d0
2 changed files with 15 additions and 0 deletions

View File

@@ -210,6 +210,20 @@ MM::PageMap::GetPteVirtualAddress(IN PMMPTE PtePointer)
return ((PVOID)((ULONG)(PtePointer) << 10));
}
/**
* Gets the status of Extended Paging Address (XPA) mode.
*
* @return This routine returns TRUE if XPA is enabled, FALSE otherwise.
*
* @since XT 1.0
*/
XTAPI
BOOLEAN
MM::PageMap::GetXpaStatus()
{
return PageMapInfo.Xpa;
}
/**
* Advances a PTE pointer by a given number of entries, considering the actual PTE size for PML2.
*