summaryrefslogtreecommitdiff
path: root/IntelFspWrapperPkg/FspInitPei/FspNotifyS3.c
diff options
context:
space:
mode:
authorYao, Jiewen <jiewen.yao@intel.com>2015-02-11 04:41:46 +0000
committerjyao1 <jyao1@Edk2>2015-02-11 04:41:46 +0000
commitd8043ce905a5832f911361ef30be28765afbdc6b (patch)
tree4b4f7171c97efc733c95cc3abf65af351017c955 /IntelFspWrapperPkg/FspInitPei/FspNotifyS3.c
parentd5fb1edfb16a2af29486ffbf5aa32a036da9caa4 (diff)
downloadedk2-platforms-d8043ce905a5832f911361ef30be28765afbdc6b.tar.xz
Update IntelFspWrapperPkg according to FSP1.1.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16826 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFspWrapperPkg/FspInitPei/FspNotifyS3.c')
-rw-r--r--IntelFspWrapperPkg/FspInitPei/FspNotifyS3.c24
1 files changed, 9 insertions, 15 deletions
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.<BR>
+ Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
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;
}