Introduce helper functions for querying the software prototype and transition bits of PTE
All checks were successful
Builds / ExectOS (amd64, release) (push) Successful in 31s
Builds / ExectOS (amd64, debug) (push) Successful in 29s
Builds / ExectOS (i686, debug) (push) Successful in 28s
Builds / ExectOS (i686, release) (push) Successful in 33s

This commit is contained in:
2026-01-01 19:40:10 +01:00
parent 5ff0cad094
commit c080f74714
7 changed files with 149 additions and 1 deletions

View File

@@ -363,6 +363,40 @@ MM::PageMap::GetPteSize(VOID)
return sizeof(MMPTE);
}
/**
* Gets the software prototype value of the corresponding Page Table Entry.
*
* @param PtePointer
* Specifies the address of the PTE.
*
* @return This routine returns the PTE software prototype value.
*
* @since XT 1.0
*/
XTAPI
ULONG
MM::PageMap::GetPteSoftwarePrototype(IN PMMPTE PtePointer)
{
return (ULONG)PtePointer->Software.Prototype;
}
/**
* Gets the software transition value of the corresponding Page Table Entry.
*
* @param PtePointer
* Specifies the address of the PTE.
*
* @return This routine returns the PTE software transition value.
*
* @since XT 1.0
*/
XTAPI
ULONG
MM::PageMap::GetPteSoftwareTransition(IN PMMPTE PtePointer)
{
return (ULONG)PtePointer->Software.Transition;
}
/**
* Gets the address of the PXE (Extended Page Entry), that maps given address.
*