From b16dbb19f861ffa9d218ec163fdc4d0aac88d496 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Fri, 30 Jan 2026 18:47:46 +0100 Subject: [PATCH] Centralize memory layout dumping --- xtoskrnl/mm/amd64/mmgr.cc | 3 --- xtoskrnl/mm/i686/mmgr.cc | 3 --- xtoskrnl/mm/mmgr.cc | 3 ++- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/xtoskrnl/mm/amd64/mmgr.cc b/xtoskrnl/mm/amd64/mmgr.cc index 72adf3a..8219f1b 100644 --- a/xtoskrnl/mm/amd64/mmgr.cc +++ b/xtoskrnl/mm/amd64/mmgr.cc @@ -387,7 +387,4 @@ MM::Manager::InitializeMemoryLayout(VOID) /* Update paged pool end address */ MemoryLayout.PagedPoolEnd = (PVOID)(((ULONGLONG)MemoryLayout.PagedPoolStart + MemoryLayout.PagedPoolSize * MM_PAGE_SIZE) - 1); - - /* Dump memory layout */ - DumpMemoryLayout(); } diff --git a/xtoskrnl/mm/i686/mmgr.cc b/xtoskrnl/mm/i686/mmgr.cc index 179e303..1a65d53 100644 --- a/xtoskrnl/mm/i686/mmgr.cc +++ b/xtoskrnl/mm/i686/mmgr.cc @@ -442,7 +442,4 @@ MM::Manager::InitializeMemoryLayout(VOID) /* Compute non-paged expansion pool size */ MemoryLayout.NonPagedExpansionPoolSize = ((ULONG_PTR)MemoryLayout.NonPagedExpansionPoolEnd - (ULONG_PTR)MemoryLayout.NonPagedExpansionPoolStart) / MM_PAGE_SIZE; - - /* Dump memory layout */ - DumpMemoryLayout(); } diff --git a/xtoskrnl/mm/mmgr.cc b/xtoskrnl/mm/mmgr.cc index 4860069..fc8e633 100644 --- a/xtoskrnl/mm/mmgr.cc +++ b/xtoskrnl/mm/mmgr.cc @@ -112,8 +112,9 @@ MM::Manager::InitializeMemoryManager(VOID) /* Compute page colors to reduce CPU cache conflicts */ MM::Colors::ComputePageColoring(); - /* Initialize memory layout */ + /* Initialize and dump memory layout */ InitializeMemoryLayout(); + DumpMemoryLayout(); /* Initialize PTE template */ MM::Pte::InitializeSystemPte();