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.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15299
6f19259b-4bc3-4df7-8a09-
765794883524
**/\r
\r
#include "PiPei.h"\r
+#include "Platform.h"\r
#include <Library/DebugLib.h>\r
#include <Library/HobLib.h>\r
#include <Library/PeiServicesLib.h>\r
//\r
// Create a memory allocation HOB for the PEI FV.\r
//\r
- // Note: This should be changed to ACPI NVS when S3 resume is enabled.\r
+ // Allocate as ACPI NVS is S3 is supported\r
//\r
BuildMemoryAllocationHob (\r
PcdGet32 (PcdOvmfPeiMemFvBase),\r
PcdGet32 (PcdOvmfPeiMemFvSize),\r
- EfiBootServicesData\r
+ mS3Supported ? EfiACPIMemoryNVS : EfiBootServicesData\r
);\r
\r
//\r