mirror of https://github.com/acidanthera/audk.git
MdeModulePkg S3SaveStateDxe: Consume PcdAcpiS3Enable to control the code
Cc: Feng Tian <feng.tian@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
522e17544f
commit
125e093876
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Internal header file for S3 Boot Script Saver state driver.
|
Internal header file for S3 Boot Script Saver state driver.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
|
@ -26,6 +26,7 @@
|
||||||
#include <Library/UefiRuntimeServicesTableLib.h>
|
#include <Library/UefiRuntimeServicesTableLib.h>
|
||||||
#include <Library/S3BootScriptLib.h>
|
#include <Library/S3BootScriptLib.h>
|
||||||
#include <Library/SmbusLib.h>
|
#include <Library/SmbusLib.h>
|
||||||
|
#include <Library/PcdLib.h>
|
||||||
#include <IndustryStandard/SmBus.h>
|
#include <IndustryStandard/SmBus.h>
|
||||||
/**
|
/**
|
||||||
Adds a record into S3 boot script table.
|
Adds a record into S3 boot script table.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Implementation for S3 Boot Script Saver state driver.
|
Implementation for S3 Boot Script Saver state driver.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions
|
are licensed and made available under the terms and conditions
|
||||||
|
@ -907,6 +907,9 @@ InitializeS3SaveState (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (!PcdGetBool (PcdAcpiS3Enable)) {
|
||||||
|
return EFI_UNSUPPORTED;
|
||||||
|
}
|
||||||
|
|
||||||
return gBS->InstallProtocolInterface (
|
return gBS->InstallProtocolInterface (
|
||||||
&mHandle,
|
&mHandle,
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
# It will install S3 Save State protocol to store or record various IO operations to be replayed during an S3 resume.
|
# It will install S3 Save State protocol to store or record various IO operations to be replayed during an S3 resume.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# This program and the accompanying materials are
|
# This program and the accompanying materials are
|
||||||
# licensed and made available under the terms and conditions of the BSD License
|
# licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@ -47,11 +47,15 @@
|
||||||
BaseMemoryLib
|
BaseMemoryLib
|
||||||
BaseLib
|
BaseLib
|
||||||
S3BootScriptLib
|
S3BootScriptLib
|
||||||
|
PcdLib
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gEfiS3SaveStateProtocolGuid ## PRODUCES
|
gEfiS3SaveStateProtocolGuid ## PRODUCES
|
||||||
|
|
||||||
|
|
||||||
|
[Pcd]
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable ## CONSUMES
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
TRUE
|
TRUE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue