LegacyBiosDxe converts EfiPersistentMemory to E820 
EfiAddressRangePersistentMemory.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao [email protected]
Reviewed-by: Star Zeng <[email protected]>
Signed-off-by: Liming Gao <[email protected]>
---
 IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosInterface.h | 5 +++--
 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 cc893a4..fcc0190 100644
--- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosInterface.h
+++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosInterface.h
@@ -1,8 +1,8 @@
 /** @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
 of the BSD License which accompanies this distribution.  The
 full text of the license may be found at
@@ -479,11 +479,12 @@ typedef struct {
 //
 typedef enum {
   EfiAcpiAddressRangeMemory   = 1,
   EfiAcpiAddressRangeReserved = 2,
   EfiAcpiAddressRangeACPI     = 3,
-  EfiAcpiAddressRangeNVS      = 4
+  EfiAcpiAddressRangeNVS      = 4,
+  EfiAddressRangePersistentMemory = 7
 } EFI_ACPI_MEMORY_TYPE;
 
 typedef struct {
   UINT64                BaseAddr;
   UINT64                Length;
diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c 
b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c
index 5848f9f..52bcae2 100644
--- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c
+++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c
@@ -1621,10 +1621,13 @@ EfiMemoryTypeToE820Type (
   //
   case EfiRuntimeServicesCode:
   case EfiRuntimeServicesData:
     return EfiAcpiAddressRangeMemory;
 
+  case EfiPersistentMemory:
+    return EfiAddressRangePersistentMemory;
+
   case EfiACPIReclaimMemory:
     return EfiAcpiAddressRangeACPI;
 
   case EfiACPIMemoryNVS:
     return EfiAcpiAddressRangeNVS;
-- 
1.9.5.msysgit.0


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to