Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: d93ad5f525e5a994a0b51fb46bea5fe8c0bbb98e
      
https://github.com/tianocore/edk2/commit/d93ad5f525e5a994a0b51fb46bea5fe8c0bbb98e
  Author: Oliver Smith-Denny <[email protected]>
  Date:   2026-06-18 (Thu, 18 Jun 2026)

  Changed paths:
    M MdeModulePkg/Core/Dxe/Mem/Page.c

  Log Message:
  -----------
  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 <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to