Initialize paged pool sizing logic
All checks were successful
Builds / ExectOS (amd64, release) (push) Successful in 26s
Builds / ExectOS (amd64, debug) (push) Successful in 29s
Builds / ExectOS (i686, debug) (push) Successful in 55s
Builds / ExectOS (i686, release) (push) Successful in 52s

This commit is contained in:
2025-12-29 10:28:12 +01:00
parent 200e9132b1
commit 7cb3d1764b

View File

@@ -42,6 +42,14 @@ MM::Manager::InitializeMemoryLayout(VOID)
NumberOfSystemPtes = MM_MAXIMUM_NUMBER_SYSTEM_PTES;
}
/* Calculate size of paged pool */
PtesPerPage = MM::Pte::GetPtesPerPage();
PteCount = (SIZE_TO_PAGES(33554432) + (PtesPerPage - 1)) / PtesPerPage;
PagedPoolSize = PteCount * PtesPerPage * MM_PAGE_SIZE;
/* Retrieve the PFN database size */
PfnDatabaseSize = MM::Pfn::GetPfnDatabaseSize();
/* Check if 3-level paging (PAE) is enabled */
if(MM::Paging::GetXpaStatus())
{