diff --git a/xtoskrnl/mm/amd64/pte.cc b/xtoskrnl/mm/amd64/pte.cc index f255b07..71fba17 100644 --- a/xtoskrnl/mm/amd64/pte.cc +++ b/xtoskrnl/mm/amd64/pte.cc @@ -153,21 +153,6 @@ MM::Pte::InitializePageTable(VOID) 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. * diff --git a/xtoskrnl/mm/i686/pte.cc b/xtoskrnl/mm/i686/pte.cc index ab83731..60bc935 100644 --- a/xtoskrnl/mm/i686/pte.cc +++ b/xtoskrnl/mm/i686/pte.cc @@ -112,21 +112,6 @@ MM::Pte::InitializePageTable(VOID) 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. * diff --git a/xtoskrnl/mm/pte.cc b/xtoskrnl/mm/pte.cc index efa382e..e281ba4 100644 --- a/xtoskrnl/mm/pte.cc +++ b/xtoskrnl/mm/pte.cc @@ -119,6 +119,21 @@ MM::Pte::GetValidPte() 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. *