CorebootModulePkg: Use PCD for memory type information initialization
CorebootModulePkg currently uses a hardcoded table for memory type initialization. It might need to be adjusted by platform to reduce the memory fragmentation. So changing to use PCDs rather than constant values to facilitate the customization. Cc: Prince Agyeman <prince.agyeman@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Maurice Ma <maurice.ma@intel.com> Reviewed-by: Prince Agyeman <prince.agyeman@intel.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# Parses coreboot table in memory and report resource information into pei core. It will install
|
||||
# the memory as required.
|
||||
#
|
||||
# Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -62,12 +62,17 @@
|
||||
gUefiAcpiBoardInfoGuid
|
||||
|
||||
[Ppis]
|
||||
gEfiPeiMasterBootModePpiGuid
|
||||
gEfiPeiMasterBootModePpiGuid
|
||||
|
||||
[Pcd]
|
||||
gUefiCorebootModulePkgTokenSpaceGuid.PcdPayloadFdMemBase
|
||||
gUefiCorebootModulePkgTokenSpaceGuid.PcdPayloadFdMemSize
|
||||
gUefiCorebootModulePkgTokenSpaceGuid.PcdCbHeaderPointer
|
||||
|
||||
gUefiCorebootModulePkgTokenSpaceGuid.PcdCbHeaderPointer
|
||||
gUefiCorebootModulePkgTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory
|
||||
gUefiCorebootModulePkgTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS
|
||||
gUefiCorebootModulePkgTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType
|
||||
gUefiCorebootModulePkgTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData
|
||||
gUefiCorebootModulePkgTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode
|
||||
|
||||
[Depex]
|
||||
TRUE
|
Reference in New Issue
Block a user