summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Workspace/BuildClassObject.py
diff options
context:
space:
mode:
authorJeff Brasen <jbrasen@nvidia.com>2026-07-20 23:54:49 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-07-31 18:16:47 +0300
commitca8de19382c668cf8770ee788478edcd8a22d0e7 (patch)
tree79207b49e1e9a39d5d88af504bd4aa87b58fc8ee /BaseTools/Source/Python/Workspace/BuildClassObject.py
parent6a4e543b09acb85bf0b4e9e3d075c50950267047 (diff)
downloadedk2-ca8de19382c668cf8770ee788478edcd8a22d0e7.tar.xz
MdeModulePkg: MemoryBins: make GoogleTest page-granularity aware
MemoryBinGoogleTest.PopulatesFromValidHob asserted fixed page counts for each memory type. PopulateMemoryTypeInformation, however, rounds the runtime memory types (EfiReservedMemoryType, EfiACPIMemoryNVS, EfiRuntimeServicesCode, EfiRuntimeServicesData) up to RUNTIME_PAGE_ALLOCATION_GRANULARITY. That granularity equals EFI_PAGE_SIZE on IA32/X64, so the hard-coded values happened to match, but it is 64 KiB on AArch64, where the same inputs round up to different page counts and the test failed. Compute the expected page counts with the same granularity rounding the production code uses, so the test passes on all host architectures instead of only x86. Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/BuildClassObject.py')
0 files changed, 0 insertions, 0 deletions