mirror of https://github.com/acidanthera/audk.git
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
This commit is contained in:
parent
6c4542eda2
commit
b483e74d5a
|
@ -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 {
|
||||
|
|
|
@ -1623,6 +1623,9 @@ EfiMemoryTypeToE820Type (
|
|||
case EfiRuntimeServicesData:
|
||||
return EfiAcpiAddressRangeMemory;
|
||||
|
||||
case EfiPersistentMemory:
|
||||
return EfiAddressRangePersistentMemory;
|
||||
|
||||
case EfiACPIReclaimMemory:
|
||||
return EfiAcpiAddressRangeACPI;
|
||||
|
||||
|
|
Loading…
Reference in New Issue