IntelFrameworkModulePkg AcpiS3SaveDxe: Consume PcdAcpiS3Enable to control the code
Cc: Jeff Fan <jeff.fan@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: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
@@ -605,8 +605,8 @@ S3Ready (
|
||||
@param ImageHandle A handle for the image that is initializing this driver
|
||||
@param SystemTable A pointer to the EFI system table
|
||||
|
||||
@retval EFI_SUCCESS: Driver initialized successfully
|
||||
@retval EFI_LOAD_ERROR: Failed to Initialize or has been loaded
|
||||
@retval EFI_SUCCESS Driver initialized successfully
|
||||
@retval EFI_UNSUPPORTED Do not support ACPI S3
|
||||
@retval EFI_OUT_OF_RESOURCES Could not allocate needed resources
|
||||
|
||||
**/
|
||||
@@ -619,6 +619,10 @@ InstallAcpiS3Save (
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
if (!PcdGetBool (PcdAcpiS3Enable)) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
if (!FeaturePcdGet(PcdPlatformCsmSupport)) {
|
||||
//
|
||||
// More memory for no CSM tip, because GDT need relocation
|
||||
|
Reference in New Issue
Block a user