Initialize PTE template dynamically to resolve build warnings
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in 23s
Builds / ExectOS (i686, debug) (push) Successful in 26s
Builds / ExectOS (amd64, release) (push) Successful in 45s
Builds / ExectOS (i686, release) (push) Successful in 42s

This commit is contained in:
2025-12-29 23:49:29 +01:00
parent aced62e790
commit dbda6bbb29
6 changed files with 34 additions and 1 deletions

View File

@@ -153,6 +153,20 @@ MM::Pte::InitializePageTable(VOID)
MM::Paging::SetPte(MM::Paging::GetPteAddress((PVOID)MemoryLayout->HyperSpaceStart), MM_HYPERSPACE_PAGE_COUNT, 0);
}
/**
* Initializes the PTE template.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
MM::Pte::InitializePteTemplate(VOID)
{
ValidPte = {MM_PTE_VALID|MM_PTE_EXECUTE_READWRITE|MM_PTE_DIRTY|MM_PTE_ACCESSED};
}
/**
* Maps a range of virtual addresses at the P5E (PML5) level.
*