ArmVirtPkg: MemoryInitPeim: Add PEI Memory Bin Support

This commit adds memory bin support to ArmVirtQemu. ArmVirtQemu
does not have a PEI variable driver, so it does not attempt
to update the bin size or location.

The bin sizes are also updated because they were very out of
date.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
This commit is contained in:
Oliver Smith-Denny 2026-01-29 10:14:46 -08:00 committed by mergify[bot]
parent efc3d6a417
commit a721a79555
2 changed files with 4 additions and 3 deletions

View file

@ -378,8 +378,8 @@ DEFINE FD_SIZE_IN_MB = 3
# (the memory used, and the free memory that was prereserved
# but not used).
#
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|4
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x3C
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
!if $(SECURE_BOOT_ENABLE) == TRUE
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600
@ -387,7 +387,7 @@ DEFINE FD_SIZE_IN_MB = 3
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500
!else
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x424
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
!endif
gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000

View file

@ -147,6 +147,7 @@
gUefiOvmfPkgTokenSpaceGuid.PcdQemuVarsRequire|TRUE
gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
!endif
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiMemoryBinsEnable|TRUE
[PcdsFixedAtBuild.common]
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFdBaseAddress|0x00000000