]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformPei/Platform.c
OvmfPkg: Set PcdAcpiS3Enable according to QemuFwCfgS3Enabled()
[mirror_edk2.git] / OvmfPkg / PlatformPei / Platform.c
index 509343e0bee52e29b637048668bb3a42c4c5f6e9..ef654c4579267b2797b14a1109001edd874bb9ac 100644 (file)
@@ -1,7 +1,7 @@
 /**@file\r
   Platform PEI driver\r
 \r
-  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
   Copyright (c) 2011, Andrei Warkentin <andreiw@motorola.com>\r
 \r
   This program and the accompanying materials\r
@@ -576,6 +576,8 @@ InitializePlatform (
   IN CONST EFI_PEI_SERVICES     **PeiServices\r
   )\r
 {\r
+  EFI_STATUS    Status;\r
+\r
   DEBUG ((EFI_D_ERROR, "Platform PEIM Loaded\n"));\r
 \r
   DebugDumpCmos ();\r
@@ -585,6 +587,8 @@ InitializePlatform (
   if (QemuFwCfgS3Enabled ()) {\r
     DEBUG ((EFI_D_INFO, "S3 support was detected on QEMU\n"));\r
     mS3Supported = TRUE;\r
+    Status = PcdSetBoolS (PcdAcpiS3Enable, TRUE);\r
+    ASSERT_EFI_ERROR (Status);\r
   }\r
 \r
   S3Verification ();\r