Implement initial memory manager infrastructure #24

Open
harraiken wants to merge 169 commits from memmgr into master
3 changed files with 15 additions and 30 deletions
Showing only changes of commit 7da6bcc75e - Show all commits

View File

@@ -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.
*

View File

@@ -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.
*

View File

@@ -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.
*