On 02/08/14 00:17, Jordan Justen wrote:
> On S3 resume, we skip decompression of the PEI FV, and expect
> to jump directly into it. For this to work, we need the OS to
> leave the memory range untouched.
> 
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Jordan Justen <jordan.l.jus...@intel.com>
> ---
>  OvmfPkg/PlatformPei/Fv.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/OvmfPkg/PlatformPei/Fv.c b/OvmfPkg/PlatformPei/Fv.c
> index 1ee417a..3ed775c 100644
> --- a/OvmfPkg/PlatformPei/Fv.c
> +++ b/OvmfPkg/PlatformPei/Fv.c
> @@ -13,6 +13,7 @@
>  **/
>  
>  #include "PiPei.h"
> +#include "Platform.h"
>  #include <Library/DebugLib.h>
>  #include <Library/HobLib.h>
>  #include <Library/PeiServicesLib.h>
> @@ -36,12 +37,12 @@ PeiFvInitialization (
>    //
>    // Create a memory allocation HOB for the PEI FV.
>    //
> -  // Note: This should be changed to ACPI NVS when S3 resume is enabled.
> +  // Allocate as ACPI NVS is S3 is supported
>    //
>    BuildMemoryAllocationHob (
>      PcdGet32 (PcdOvmfPeiMemFvBase),
>      PcdGet32 (PcdOvmfPeiMemFvSize),
> -    EfiBootServicesData
> +    mS3Supported ? EfiACPIMemoryNVS : EfiBootServicesData
>      );
>  
>    //
> 

Reviewed-by: Laszlo Ersek <ler...@redhat.com>

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to