From 825de8b471b080c99d83f81e5b92642e9903421c Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Fri, 30 Jan 2026 17:46:20 +0100 Subject: [PATCH] Remove redundant PFN database alignment --- xtoskrnl/mm/i686/mmgr.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xtoskrnl/mm/i686/mmgr.cc b/xtoskrnl/mm/i686/mmgr.cc index 957895c..ff41832 100644 --- a/xtoskrnl/mm/i686/mmgr.cc +++ b/xtoskrnl/mm/i686/mmgr.cc @@ -406,9 +406,8 @@ MM::Manager::InitializeMemoryLayout(VOID) /* Insert the PFN database right after the loader mappings */ MemoryLayout.PfnDatabase = (PMMPFN)MemoryLayout.LoaderMappingsEnd; - /* Compute the PFN database page-aligned end address */ + /* Compute the PFN database end address */ PfnDatabaseEnd = (ULONG_PTR)MemoryLayout.PfnDatabase + (MemoryLayout.PfnDatabaseSize * MM_PAGE_SIZE); - PfnDatabaseEnd = ROUND_UP(PfnDatabaseEnd, MM_PAGE_SIZE); /* Check in non-paged pool fits before session space */ if(MemoryLayout.NonPagedPoolSize * MM_PAGE_SIZE <= ((ULONG_PTR)MemoryLayout.SessionSpaceStart - PfnDatabaseEnd))