diff options
author | Maurice Ma <maurice.ma@intel.com> | 2016-05-18 16:27:07 -0700 |
---|---|---|
committer | Maurice Ma <maurice.ma@intel.com> | 2016-05-18 16:30:18 -0700 |
commit | 298454472bf4cf088a694bafa3b66503b4f8a39d (patch) | |
tree | 735be89727adbf71f53a3a93857285e63f4a0075 /CorebootModulePkg/CorebootModulePkg.dec | |
parent | 81c1460695f783a3f91431b2babea623556a7f5d (diff) | |
download | edk2-298454472bf4cf088a694bafa3b66503b4f8a39d.tar.gz edk2-298454472bf4cf088a694bafa3b66503b4f8a39d.tar.bz2 edk2-298454472bf4cf088a694bafa3b66503b4f8a39d.zip |
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>
Diffstat (limited to 'CorebootModulePkg/CorebootModulePkg.dec')
-rw-r--r-- | CorebootModulePkg/CorebootModulePkg.dec | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/CorebootModulePkg/CorebootModulePkg.dec b/CorebootModulePkg/CorebootModulePkg.dec index 4b97f9f249..7f1309bdae 100644 --- a/CorebootModulePkg/CorebootModulePkg.dec +++ b/CorebootModulePkg/CorebootModulePkg.dec @@ -1,16 +1,16 @@ ## @file
# Coreboot Support Package
#
-# Provides drivers and definitions to support coreboot in EDKII bios.
+# Provides drivers and definitions to support coreboot in EDKII bios.
#
-# Copyright (c) 2014, 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 that accompanies this distribution.
+# 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 that accompanies this distribution.
# The full text of the license may be found at
-# http://opensource.org/licenses/bsd-license.php.
-#
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+# http://opensource.org/licenses/bsd-license.php.
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
##
@@ -19,13 +19,13 @@ PACKAGE_NAME = CorebootModulePkg
PACKAGE_GUID = DE1750CE-FEE7-4dd1-8E9C-B7B8BAEBCF4F
PACKAGE_VERSION = 0.1
-
+
[Includes]
Include
-
+
[LibraryClasses]
CbParseLib|Include/Library/CbParseLib.h
-
+
[Guids]
#
## Defines the token space for the Coreboot Module Package PCDs.
@@ -53,7 +53,13 @@ gUefiCorebootModulePkgTokenSpaceGuid.PcdPayloadFdMemBase|0|UINT32|0x10000001
## Provides the size of the payload binary in memory
gUefiCorebootModulePkgTokenSpaceGuid.PcdPayloadFdMemSize|0|UINT32|0x10000002
+## Used to help reduce fragmentation in the EFI memory map
+gUefiCorebootModulePkgTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x08|UINT32|0x10000012
+gUefiCorebootModulePkgTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x04|UINT32|0x10000013
+gUefiCorebootModulePkgTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x04|UINT32|0x00000014
+gUefiCorebootModulePkgTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0xC0|UINT32|0x00000015
+gUefiCorebootModulePkgTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x80|UINT32|0x00000016
[PcdsDynamicEx]
gUefiCorebootModulePkgTokenSpaceGuid.PcdCbHeaderPointer|0|UINT32|0x10000003
-
+
|