]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c
Allocate ReservedMemory instead of ACPIMemoryNVS for its shadow memory space which...
[mirror_edk2.git] / MdeModulePkg / Universal / Acpi / BootScriptExecutorDxe / ScriptExecute.c
index d5698d4682646114047b3de0c19bb981927583fc..c5eec24e0e3df8317ee27ddbe810b8cd7950ac54 100644 (file)
@@ -232,7 +232,7 @@ BootScriptExecutorEntryPoint (
   if (EFI_ERROR (Status)) {\r
 \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
@@ -265,7 +265,7 @@ BootScriptExecutorEntryPoint (
       FfsBuffer = 0xFFFFFFFF;\r
       Status = gBS->AllocatePages (\r
                     AllocateMaxAddress,\r
-                    EfiACPIMemoryNVS,\r
+                    EfiReservedMemoryType,\r
                     Pages,\r
                     &FfsBuffer\r
                     );\r
@@ -316,7 +316,7 @@ BootScriptExecutorEntryPoint (
 \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
       BufferSize = sizeof (BOOT_SCRIPT_EXECUTOR_VARIABLE);\r
 \r
@@ -324,7 +324,7 @@ BootScriptExecutorEntryPoint (
       Pages = EFI_SIZE_TO_PAGES(BufferSize);\r
       Status = gBS->AllocatePages (\r
                       AllocateMaxAddress,\r
-                      EfiACPIMemoryNVS,\r
+                      EfiReservedMemoryType,\r
                       Pages,\r
                       &BootScriptExecutorBuffer\r
                       );\r