summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe/Mem/GoogleTest
AgeCommit message (Collapse)AuthorFilesLines
2026-07-31MdeModulePkg: MemoryBins: make GoogleTest page-granularity awareJeff Brasen1-6/+36
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>
2026-07-09MdeModulePkg: Dxe Core: Correct gMemoryTypeInformation DefinitionOliver Smith-Denny1-1/+1
Commit 43e306806e3c1ed3ad7e9913492732e893cafa0f added support to DXE Core for EfiUnacceptedMemoryType. However, it incorrectly added EFI_GCD_MEMORY_TYPE_UNACCEPTED to gMemoryTypeInformation, which is the GCD memory type that is associated with EfiUnacceptedMemoryType. All other changes from that PR appear correct. This is corrected to the EFI memory type. The Memory Bin Google Test copied this incorrect definition, so it is updated as well. Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2026-06-24MdeModulePkg: MemoryBins: Add GoogleTest and READMEOliver Smith-Denny2-0/+694
This commit adds unit tests and documentation for the Memory Bin feature. Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>