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
FfsBuffer = 0xFFFFFFFF;\r
Status = gBS->AllocatePages (\r
AllocateMaxAddress,\r
- EfiACPIMemoryNVS,\r
+ EfiReservedMemoryType,\r
Pages,\r
&FfsBuffer\r
);\r
\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
Pages = EFI_SIZE_TO_PAGES(BufferSize);\r
Status = gBS->AllocatePages (\r
AllocateMaxAddress,\r
- EfiACPIMemoryNVS,\r
+ EfiReservedMemoryType,\r
Pages,\r
&BootScriptExecutorBuffer\r
);\r