]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFspWrapperPkg/FspInitPei/FspNotifyS3.c
Update IntelFspWrapperPkg according to FSP1.1.
[mirror_edk2.git] / IntelFspWrapperPkg / FspInitPei / FspNotifyS3.c
index 6fd2b77588336ac86df7dc1e9193185ca4a8582f..f784b014a65978982815db1af07ec81c638e5fa8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   In EndOfPei notify, it will call FspNotifyPhase API.\r
 \r
-  Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -58,29 +58,23 @@ S3EndOfPeiNotify (
   )\r
 {\r
   NOTIFY_PHASE_PARAMS NotifyPhaseParams;\r
-  FSP_STATUS          FspStatus;\r
+  EFI_STATUS          Status;\r
   FSP_INFO_HEADER     *FspHeader;\r
 \r
   FspHeader = FspFindFspHeader (PcdGet32 (PcdFlashFvFspBase));\r
   if (FspHeader == NULL) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-\r
+  \r
+  DEBUG ((DEBUG_INFO, "S3EndOfPeiNotify enter\n"));\r
+  \r
   NotifyPhaseParams.Phase = EnumInitPhaseAfterPciEnumeration;\r
-  FspStatus = CallFspNotifyPhase (FspHeader, &NotifyPhaseParams);\r
-  if (FspStatus != FSP_SUCCESS) {\r
-    DEBUG((DEBUG_ERROR, "FSP S3NotifyPhase AfterPciEnumeration failed, status: 0x%x\n", FspStatus));\r
-  } else {\r
-    DEBUG((DEBUG_INFO, "FSP S3NotifyPhase AfterPciEnumeration Success.\n"));\r
-  }\r
+  Status = CallFspNotifyPhase (FspHeader, &NotifyPhaseParams);\r
+  DEBUG((DEBUG_INFO, "FSP S3NotifyPhase AfterPciEnumeration status: 0x%x\n", Status));\r
 \r
   NotifyPhaseParams.Phase = EnumInitPhaseReadyToBoot;\r
-  FspStatus = CallFspNotifyPhase (FspHeader, &NotifyPhaseParams);\r
-  if (FspStatus != FSP_SUCCESS) {\r
-    DEBUG((DEBUG_ERROR, "FSP S3NotifyPhase ReadyToBoot failed, status: 0x%x\n", FspStatus));\r
-  } else {\r
-    DEBUG((DEBUG_INFO, "FSP S3NotifyPhase ReadyToBoot Success.\n"));\r
-  }\r
+  Status = CallFspNotifyPhase (FspHeader, &NotifyPhaseParams);\r
+  DEBUG((DEBUG_INFO, "FSP S3NotifyPhase ReadyToBoot status: 0x%x\n", Status));\r
 \r
   return EFI_SUCCESS;\r
 }\r