Centralize memory layout dumping
This commit is contained in:
@@ -387,7 +387,4 @@ MM::Manager::InitializeMemoryLayout(VOID)
|
|||||||
/* Update paged pool end address */
|
/* Update paged pool end address */
|
||||||
MemoryLayout.PagedPoolEnd = (PVOID)(((ULONGLONG)MemoryLayout.PagedPoolStart +
|
MemoryLayout.PagedPoolEnd = (PVOID)(((ULONGLONG)MemoryLayout.PagedPoolStart +
|
||||||
MemoryLayout.PagedPoolSize * MM_PAGE_SIZE) - 1);
|
MemoryLayout.PagedPoolSize * MM_PAGE_SIZE) - 1);
|
||||||
|
|
||||||
/* Dump memory layout */
|
|
||||||
DumpMemoryLayout();
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -442,7 +442,4 @@ MM::Manager::InitializeMemoryLayout(VOID)
|
|||||||
/* Compute non-paged expansion pool size */
|
/* Compute non-paged expansion pool size */
|
||||||
MemoryLayout.NonPagedExpansionPoolSize = ((ULONG_PTR)MemoryLayout.NonPagedExpansionPoolEnd -
|
MemoryLayout.NonPagedExpansionPoolSize = ((ULONG_PTR)MemoryLayout.NonPagedExpansionPoolEnd -
|
||||||
(ULONG_PTR)MemoryLayout.NonPagedExpansionPoolStart) / MM_PAGE_SIZE;
|
(ULONG_PTR)MemoryLayout.NonPagedExpansionPoolStart) / MM_PAGE_SIZE;
|
||||||
|
|
||||||
/* Dump memory layout */
|
|
||||||
DumpMemoryLayout();
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,8 +112,9 @@ MM::Manager::InitializeMemoryManager(VOID)
|
|||||||
/* Compute page colors to reduce CPU cache conflicts */
|
/* Compute page colors to reduce CPU cache conflicts */
|
||||||
MM::Colors::ComputePageColoring();
|
MM::Colors::ComputePageColoring();
|
||||||
|
|
||||||
/* Initialize memory layout */
|
/* Initialize and dump memory layout */
|
||||||
InitializeMemoryLayout();
|
InitializeMemoryLayout();
|
||||||
|
DumpMemoryLayout();
|
||||||
|
|
||||||
/* Initialize PTE template */
|
/* Initialize PTE template */
|
||||||
MM::Pte::InitializeSystemPte();
|
MM::Pte::InitializeSystemPte();
|
||||||
|
|||||||
Reference in New Issue
Block a user