edk2/MdeModulePkg/Core
Oliver Smith-Denny d93ad5f525 MdeModulePkg: Dxe Core: Allocate Memory Bins Contiguously
Currently, there is no guarantee that the memory bins will be
allocated contiguously. However, there are assumptions in the
code that bins are allocated contiguously, such as the GCD
init code requiring a free memory region be large enough for
a contiguous bin range on DXE Core init.

Ensuring contiguous bins also makes a cleaner model for the
bins and keeps the memory map in a more standard configuration
between different configurations, as platforms today can
pass a resource descriptor HOB to DXE core to describe the bin
range and this only supports a contiguous range.

This also sets up reusing the memory bin logic for PEI memory
bin support which will use the aforementioned resource descriptor
HOB to pass the bin range to DXE.

This commit updates CoreAddMemoryDescriptor() to
allocate a contiguous range.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2026-06-18 01:28:36 +00:00
..
Dxe MdeModulePkg: Dxe Core: Allocate Memory Bins Contiguously 2026-06-18 01:28:36 +00:00
DxeIplPeim MdeModulePkg: DxeIpl IA32: Use 256 IDT Entries 2026-03-07 03:58:40 +00:00
Pei MdeModulePkg: Cleanup debug print readability 2026-05-06 10:43:05 +00:00
PiSmmCore MdeModulePkg: Remove duplicate procotols guid in INF files 2026-04-29 11:18:10 +02:00
RuntimeDxe MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00