+++ /dev/null
-/** @file\r
- This Library uses Framework RecoveryModule PPI to do system recovery.\r
-\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 - 2018, Intel Corporation. All rights reserved.<BR>\r
-SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-#include <PiPei.h>\r
-#include <Library/PeiServicesLib.h>\r
-#include <Library/PeiServicesTablePointerLib.h>\r
-#include <Library/DebugLib.h>\r
-\r
-#include <Ppi/RecoveryModule.h>\r
-\r
-/**\r
- Calling this function causes the system do recovery.\r
-\r
- @retval EFI_SUCESS Sucess to do recovery.\r
- @retval Others Fail to do recovery.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-PeiRecoverFirmware (\r
- VOID\r
- )\r
-{\r
- EFI_STATUS Status;\r
- EFI_PEI_RECOVERY_MODULE_PPI *PeiRecovery;\r
-\r
- Status = PeiServicesLocatePpi (\r
- &gEfiPeiRecoveryModulePpiGuid,\r
- 0,\r
- NULL,\r
- (VOID **)&PeiRecovery\r
- );\r
- ASSERT_EFI_ERROR (Status);\r
-\r
- return PeiRecovery->LoadRecoveryCapsule ((EFI_PEI_SERVICES **) GetPeiServicesTablePointer(), PeiRecovery);\r
-}\r
-\r