@param ImageHandle A handle for the image that is initializing this driver\r
@param SystemTable A pointer to the EFI system table\r
\r
- @retval EFI_SUCCESS: Driver initialized successfully\r
- @retval EFI_LOAD_ERROR: Failed to Initialize or has been loaded\r
+ @retval EFI_SUCCESS Driver initialized successfully\r
+ @retval EFI_UNSUPPORTED Do not support ACPI S3\r
@retval EFI_OUT_OF_RESOURCES Could not allocate needed resources\r
\r
**/\r
{\r
EFI_STATUS Status;\r
\r
+ if (!PcdGetBool (PcdAcpiS3Enable)) {\r
+ return EFI_UNSUPPORTED;\r
+ }\r
+\r
if (!FeaturePcdGet(PcdPlatformCsmSupport)) {\r
//\r
// More memory for no CSM tip, because GDT need relocation\r
## @file\r
# AcpiS3Save module installs ACPI S3 Save protocol to prepare S3 boot data.\r
#\r
-# Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials are\r
# licensed and made available under the terms and conditions of the BSD License\r
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdS3AcpiReservedMemorySize ## SOMETIMES_CONSUMES\r
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdS3BootScriptStackSize ## CONSUMES\r
gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable ## CONSUMES\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable ## CONSUMES\r
\r
[Depex]\r
#\r