]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
Allocate ReservedMemory instead of ACPIMemoryNVS for its shadow memory space which...
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / BootScriptSaveOnS3SaveStateThunk / ScriptSave.c
index 4a63977115bc78ed0dd7c8919ffd775720a94add..84881ea6f5899b78cba7f78ce577a6204f3a6b97 100644 (file)
@@ -827,7 +827,7 @@ InitializeScriptSaveOnS3SaveState (
   Status = gBS->LocateProtocol (&gEfiCallerIdGuid, NULL, &DevicePath);\r
   if (EFI_ERROR (Status)) {\r
     //\r
-    // This is the first-time loaded by DXE core. reload itself to NVS mem\r
+    // This is the first-time loaded by DXE core. reload itself to RESERVED mem\r
     //\r
     //\r
     // A workaround: Here we install a dummy handle\r
@@ -861,7 +861,7 @@ InitializeScriptSaveOnS3SaveState (
     PageNumber    = EFI_SIZE_TO_PAGES (BufferSize + ImageContext.SectionAlignment);\r
     Status  = gBS->AllocatePages (\r
                      AllocateMaxAddress,\r
-                     EfiACPIMemoryNVS,\r
+                     EfiReservedMemoryType,\r
                      PageNumber,\r
                      &MemoryAddress\r
                      );\r
@@ -915,7 +915,7 @@ InitializeScriptSaveOnS3SaveState (
     return EFI_SUCCESS;\r
   } else {\r
     //\r
-    // the entry point is invoked after reloading. following code only run in  ACPI NVS\r
+    // the entry point is invoked after reloading. following code only run in RESERVED mem\r
     //\r
 \r
     //\r