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
PageNumber = EFI_SIZE_TO_PAGES (BufferSize + ImageContext.SectionAlignment);\r
Status = gBS->AllocatePages (\r
AllocateMaxAddress,\r
- EfiACPIMemoryNVS,\r
+ EfiReservedMemoryType,\r
PageNumber,\r
&MemoryAddress\r
);\r
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