forked from xt-sys/exectos
Extend PTE helpers with raw read and write support
This commit is contained in:
@@ -293,6 +293,24 @@ MM::Paging::GetPpeVirtualAddress(IN PMMPPE PpePointer)
|
||||
return PmlRoutines->GetPpeVirtualAddress(PpePointer);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the entire contents of a Page Table Entry (PTE) as a single value.
|
||||
*
|
||||
* @param PtePointer
|
||||
* Pointer to the Page Table Entry (PTE) to read.
|
||||
*
|
||||
* @return This routine returns the contents of the PTE as a single value.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTAPI
|
||||
ULONG_PTR
|
||||
MM::Paging::GetPte(IN PMMPTE PtePointer)
|
||||
{
|
||||
/* Return PTE value */
|
||||
return PmlRoutines->GetPte(PtePointer);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the address of the PTE (Page Table Entry), that maps given address.
|
||||
*
|
||||
@@ -495,6 +513,27 @@ MM::Paging::SetPte(IN PMMPTE PtePointer,
|
||||
PmlRoutines->SetPte(PtePointer, PageFrameNumber, AttributesMask);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a Page Table Entry (PTE) with the specified attributes.
|
||||
*
|
||||
* @param PtePointer
|
||||
* Pointer to the page table entry (PTE) to set.
|
||||
*
|
||||
* @param Attributes
|
||||
* Specifies the attributes to apply to the PTE.
|
||||
*
|
||||
* @return This routine does not return any value.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTAPI
|
||||
VOID
|
||||
MM::Paging::SetPte(IN PMMPTE PtePointer,
|
||||
IN ULONG_PTR Attributes)
|
||||
{
|
||||
PmlRoutines->SetPte(PtePointer, Attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets caching attributes for a PML2 page table entry (PTE).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user