X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFspWrapperPkg%2FFspInitPei%2FFspNotifyS3.c;h=f784b014a65978982815db1af07ec81c638e5fa8;hp=6fd2b77588336ac86df7dc1e9193185ca4a8582f;hb=d8043ce905a5832f911361ef30be28765afbdc6b;hpb=d5fb1edfb16a2af29486ffbf5aa32a036da9caa4;ds=sidebyside diff --git a/IntelFspWrapperPkg/FspInitPei/FspNotifyS3.c b/IntelFspWrapperPkg/FspInitPei/FspNotifyS3.c index 6fd2b77588..f784b014a6 100644 --- a/IntelFspWrapperPkg/FspInitPei/FspNotifyS3.c +++ b/IntelFspWrapperPkg/FspInitPei/FspNotifyS3.c @@ -1,7 +1,7 @@ /** @file In EndOfPei notify, it will call FspNotifyPhase API. - Copyright (c) 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -58,29 +58,23 @@ S3EndOfPeiNotify ( ) { NOTIFY_PHASE_PARAMS NotifyPhaseParams; - FSP_STATUS FspStatus; + EFI_STATUS Status; FSP_INFO_HEADER *FspHeader; FspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvFspBase)); if (FspHeader == NULL) { return EFI_DEVICE_ERROR; } - + + DEBUG ((DEBUG_INFO, "S3EndOfPeiNotify enter\n")); + NotifyPhaseParams.Phase = EnumInitPhaseAfterPciEnumeration; - FspStatus = CallFspNotifyPhase (FspHeader, &NotifyPhaseParams); - if (FspStatus != FSP_SUCCESS) { - DEBUG((DEBUG_ERROR, "FSP S3NotifyPhase AfterPciEnumeration failed, status: 0x%x\n", FspStatus)); - } else { - DEBUG((DEBUG_INFO, "FSP S3NotifyPhase AfterPciEnumeration Success.\n")); - } + Status = CallFspNotifyPhase (FspHeader, &NotifyPhaseParams); + DEBUG((DEBUG_INFO, "FSP S3NotifyPhase AfterPciEnumeration status: 0x%x\n", Status)); NotifyPhaseParams.Phase = EnumInitPhaseReadyToBoot; - FspStatus = CallFspNotifyPhase (FspHeader, &NotifyPhaseParams); - if (FspStatus != FSP_SUCCESS) { - DEBUG((DEBUG_ERROR, "FSP S3NotifyPhase ReadyToBoot failed, status: 0x%x\n", FspStatus)); - } else { - DEBUG((DEBUG_INFO, "FSP S3NotifyPhase ReadyToBoot Success.\n")); - } + Status = CallFspNotifyPhase (FspHeader, &NotifyPhaseParams); + DEBUG((DEBUG_INFO, "FSP S3NotifyPhase ReadyToBoot status: 0x%x\n", Status)); return EFI_SUCCESS; }