diff options
author | Liming Gao <liming.gao@intel.com> | 2015-04-29 01:38:01 +0000 |
---|---|---|
committer | lgao4 <lgao4@Edk2> | 2015-04-29 01:38:01 +0000 |
commit | b483e74d5a972d1d3b3f422c50ef7af5d7ab9892 (patch) | |
tree | c609502ab8577418b122f6e230a5f9b1d5947882 /IntelFrameworkModulePkg/Csm | |
parent | 6c4542eda2fa60136e427fcbd9b895afca1e86e9 (diff) | |
download | edk2-b483e74d5a972d1d3b3f422c50ef7af5d7ab9892.tar.gz edk2-b483e74d5a972d1d3b3f422c50ef7af5d7ab9892.tar.bz2 edk2-b483e74d5a972d1d3b3f422c50ef7af5d7ab9892.zip |
IntelFrameworkModulePkg: Add UEFI2.5 PersistentMemory support in LegacyBios
LegacyBiosDxe converts EfiPersistentMemory to E820 EfiAddressRangePersistentMemory.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17244 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Csm')
-rw-r--r-- | IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosInterface.h | 5 | ||||
-rw-r--r-- | IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosInterface.h b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosInterface.h index cc893a49a7..fcc0190d1e 100644 --- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosInterface.h +++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosInterface.h @@ -1,6 +1,6 @@ /** @file
-Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions
@@ -481,7 +481,8 @@ typedef enum { EfiAcpiAddressRangeMemory = 1,
EfiAcpiAddressRangeReserved = 2,
EfiAcpiAddressRangeACPI = 3,
- EfiAcpiAddressRangeNVS = 4
+ EfiAcpiAddressRangeNVS = 4,
+ EfiAddressRangePersistentMemory = 7
} EFI_ACPI_MEMORY_TYPE;
typedef struct {
diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c index 5848f9f164..52bcae2d13 100644 --- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c +++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c @@ -1623,6 +1623,9 @@ EfiMemoryTypeToE820Type ( case EfiRuntimeServicesData:
return EfiAcpiAddressRangeMemory;
+ case EfiPersistentMemory:
+ return EfiAddressRangePersistentMemory;
+
case EfiACPIReclaimMemory:
return EfiAcpiAddressRangeACPI;
|