Standardize ValidPte setup across architectures
All checks were successful
Builds / ExectOS (amd64, release) (push) Successful in 24s
Builds / ExectOS (i686, release) (push) Successful in 26s
Builds / ExectOS (i686, debug) (push) Successful in 39s
Builds / ExectOS (amd64, debug) (push) Successful in 40s

This commit is contained in:
2026-01-14 22:42:14 +01:00
parent 0f38d39705
commit 7da6bcc75e
3 changed files with 15 additions and 30 deletions

View File

@@ -153,21 +153,6 @@ MM::Pte::InitializePageTable(VOID)
MM::Paging::SetPte(MM::Paging::GetPteAddress((PVOID)MemoryLayout->HyperSpaceStart), MM_HYPERSPACE_PAGE_COUNT, 0); MM::Paging::SetPte(MM::Paging::GetPteAddress((PVOID)MemoryLayout->HyperSpaceStart), MM_HYPERSPACE_PAGE_COUNT, 0);
} }
/**
* Initializes the system's PTE.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
MM::Pte::InitializeSystemPte(VOID)
{
/* Initialize the PTE template */
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. * Maps a range of virtual addresses at the P5E (PML5) level.
* *

View File

@@ -112,21 +112,6 @@ MM::Pte::InitializePageTable(VOID)
MM::Pte::MapPDE(MemoryLayout->SystemSpaceStart, (PVOID)MM_HIGHEST_SYSTEM_ADDRESS, &TemplatePte); MM::Pte::MapPDE(MemoryLayout->SystemSpaceStart, (PVOID)MM_HIGHEST_SYSTEM_ADDRESS, &TemplatePte);
} }
/**
* Initializes the system's PTE.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
MM::Pte::InitializeSystemPte(VOID)
{
/* Initialize the PTE template */
ValidPte = {{MM_PTE_VALID|MM_PTE_EXECUTE_READWRITE|MM_PTE_DIRTY|MM_PTE_ACCESSED}};
}
/** /**
* Maps a range of virtual addresses at the PPE (Page Directory Pointer Entry) level. * Maps a range of virtual addresses at the PPE (Page Directory Pointer Entry) level.
* *

View File

@@ -119,6 +119,21 @@ MM::Pte::GetValidPte()
return &ValidPte; return &ValidPte;
} }
/**
* Initializes the system's PTE.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
MM::Pte::InitializeSystemPte(VOID)
{
/* Initialize the PTE template */
MM::Paging::SetPte(&ValidPte, MM_PTE_VALID | MM_PTE_EXECUTE_READWRITE | MM_PTE_DIRTY | MM_PTE_ACCESSED);
}
/** /**
* Formats a range of PTEs into a freelist-based pool for system allocations. * Formats a range of PTEs into a freelist-based pool for system allocations.
* *