Revision: 13935
http://edk2.svn.sourceforge.net/edk2/?rev=13935&view=rev
Author: lzeng14
Date: 2012-11-12 05:28:32 +0000 (Mon, 12 Nov 2012)
Log Message:
-----------
Allocate ReservedMemory instead of ACPIMemoryNVS for its shadow memory space
which is not required to be restored by OS.
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>
Modified Paths:
--------------
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptThunkHelper/BootScriptThunkHelper.c
trunk/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c
Modified:
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
===================================================================
---
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
2012-11-12 03:48:35 UTC (rev 13934)
+++
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptSaveOnS3SaveStateThunk/ScriptSave.c
2012-11-12 05:28:32 UTC (rev 13935)
@@ -827,7 +827,7 @@
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 @@
PageNumber = EFI_SIZE_TO_PAGES (BufferSize +
ImageContext.SectionAlignment);
Status = gBS->AllocatePages (
AllocateMaxAddress,
- EfiACPIMemoryNVS,
+ EfiReservedMemoryType,
PageNumber,
&MemoryAddress
);
@@ -915,7 +915,7 @@
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
//
//
Modified:
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptThunkHelper/BootScriptThunkHelper.c
===================================================================
---
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptThunkHelper/BootScriptThunkHelper.c
2012-11-12 03:48:35 UTC (rev 13934)
+++
trunk/edk2/EdkCompatibilityPkg/Compatibility/BootScriptThunkHelper/BootScriptThunkHelper.c
2012-11-12 05:28:32 UTC (rev 13935)
@@ -1,9 +1,9 @@
/** @file
Boot Script Helper SMM driver.
- This driver is responsible to restoer BootScriptThunk from SMRAM to AcpiNvs
for security considertion.
+ This driver is responsible to store BootScriptThunk from ReservedMemory to
SMRAM for security consideration.
-Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions
Modified:
trunk/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c
===================================================================
---
trunk/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c
2012-11-12 03:48:35 UTC (rev 13934)
+++
trunk/edk2/MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/ScriptExecute.c
2012-11-12 05:28:32 UTC (rev 13935)
@@ -232,7 +232,7 @@
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
@@ -265,7 +265,7 @@
FfsBuffer = 0xFFFFFFFF;
Status = gBS->AllocatePages (
AllocateMaxAddress,
- EfiACPIMemoryNVS,
+ EfiReservedMemoryType,
Pages,
&FfsBuffer
);
@@ -316,7 +316,7 @@
} 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
//
BufferSize = sizeof (BOOT_SCRIPT_EXECUTOR_VARIABLE);
@@ -324,7 +324,7 @@
Pages = EFI_SIZE_TO_PAGES(BufferSize);
Status = gBS->AllocatePages (
AllocateMaxAddress,
- EfiACPIMemoryNVS,
+ EfiReservedMemoryType,
Pages,
&BootScriptExecutorBuffer
);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits