diff options
| author | Michael D Kinney <michael.d.kinney@intel.com> | 2026-01-21 12:18:09 -0800 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-01-28 16:20:18 +0000 |
| commit | d419725b23207ebbb14ac6f1285a24753e955e92 (patch) | |
| tree | 085c01561b7748b6fd81830a70d90f221943fe57 /ShellPkg/Library | |
| parent | 6834d43991741737acf9e53350cb9293e1c9c2f5 (diff) | |
| download | edk2-master.zip edk2-master.tar.gz edk2-master.tar.bz2 | |
Fix alignment issues in memory map entries returned by
GetMemoryMap() when RUNTIME_PAGE_ALLOCATION_GRANULARITY is
larger than DEFAULT_PAGE_ALLOCATION_GRANULARITY.
There are no issues in the Page/Pool Allocation/Free services.
Logic issues issues are addressed in the memory map returned
by GetMemoryMap() due to missing cases for memory map entries
of type EfiConventionalMemory that overlap special memory bins.
Add logic to handle all possible memory map splits required to
convert internal memory map entries into an EFI Memory Map with
EFI Memory Map entries the follow alignment requirements when
the EFI Memory Map entries cover memory bins.
The four cases that must be handled are:
* Memory map entry contained within a bin. [Already covered]
Convert memory map entry type
* Memory map entry overlaps beginning of bin. [Added]
Split memory map entry at beginning of bin.
* Memory map entry overlaps end of bin. [Added]
Split memory map entry at end of bin.
* Memory map entry overlaps entire bin. [Added]
Split memory map entry at both ends of bin.
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'ShellPkg/Library')
0 files changed, 0 insertions, 0 deletions
