diff options
author | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-11-12 05:28:32 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-11-12 05:28:32 +0000 |
commit | bad73446684b9528c7e14ca1a372ac89c7af15bb (patch) | |
tree | 88098351156cb6dee9e93f60d369b27d39100652 /EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk | |
parent | 60bee0c9b5e90eee06c21b4df540ee83b7342d0a (diff) | |
download | edk2-platforms-bad73446684b9528c7e14ca1a372ac89c7af15bb.tar.xz |
Allocate ReservedMemory instead of ACPIMemoryNVS for its shadow memory space which is not required to be restored by OS.
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13935 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk')
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c b/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c index 4a63977115..84881ea6f5 100644 --- a/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c +++ b/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c @@ -827,7 +827,7 @@ InitializeScriptSaveOnS3SaveState ( Status = gBS->LocateProtocol (&gEfiCallerIdGuid, NULL, &DevicePath);
if (EFI_ERROR (Status)) {
//
- // This is the first-time loaded by DXE core. reload itself to NVS mem
+ // This is the first-time loaded by DXE core. reload itself to RESERVED mem
//
//
// A workaround: Here we install a dummy handle
@@ -861,7 +861,7 @@ InitializeScriptSaveOnS3SaveState ( PageNumber = EFI_SIZE_TO_PAGES (BufferSize + ImageContext.SectionAlignment);
Status = gBS->AllocatePages (
AllocateMaxAddress,
- EfiACPIMemoryNVS,
+ EfiReservedMemoryType,
PageNumber,
&MemoryAddress
);
@@ -915,7 +915,7 @@ InitializeScriptSaveOnS3SaveState ( return EFI_SUCCESS;
} else {
//
- // the entry point is invoked after reloading. following code only run in ACPI NVS
+ // the entry point is invoked after reloading. following code only run in RESERVED mem
//
//
|