]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Library/PeiRecoveryLib/PeiRecoveryLib.c
Update the comments for S3Lib and RecoveryLib instances to state that they are deprec...
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / PeiRecoveryLib / PeiRecoveryLib.c
index 053831235b70d81b32cb57ac6cb3f6358d540aa4..4c0a877131dfebf5125af7723b4fcd0cb4882feb 100644 (file)
@@ -1,7 +1,11 @@
-/**@file\r
-  Recovery Library. This library class defines a set of methods related do recovery.\r
+/** @file\r
+  This Library uses Framework RecoveryModule PPI to do system recovery.\r
 \r
-Copyright (c) 2006 - 2007 Intel Corporation\r
+  This library instance is no longer used and module using this library\r
+  class should update to directly locate EFI_PEI_RECOVERY_MODULE_PPI defined\r
+  in PI 1.2 specification. \r
+\r
+Copyright (c) 2006 - 2009 Intel Corporation\r
 All rights reserved. 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
@@ -11,7 +15,7 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
-#include <FrameworkPei.h>\r
+#include <PiPei.h>\r
 #include <Library/PeiServicesLib.h>\r
 #include <Library/PeiServicesTablePointerLib.h>\r
 #include <Library/DebugLib.h>\r
@@ -26,7 +30,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 EFI_STATUS\r
 EFIAPI\r
-Recovery (\r
+PeiRecoverFirmware (\r
   VOID\r
   )\r
 {\r
@@ -41,6 +45,6 @@ Recovery (
              );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  return PeiRecovery->LoadRecoveryCapsule (GetPeiServicesTablePointer(), PeiRecovery);\r
+  return PeiRecovery->LoadRecoveryCapsule ((EFI_PEI_SERVICES  **) GetPeiServicesTablePointer(), PeiRecovery);\r
 }\r
 \r