2 This Library uses Framework RecoveryModule PPI to do system recovery.
4 This library instance is no longer used and module using this library
5 class should update to directly locate EFI_PEI_RECOVERY_MODULE_PPI defined
6 in PI 1.2 specification.
8 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
9 SPDX-License-Identifier: BSD-2-Clause-Patent
13 #include <Library/PeiServicesLib.h>
14 #include <Library/PeiServicesTablePointerLib.h>
15 #include <Library/DebugLib.h>
17 #include <Ppi/RecoveryModule.h>
20 Calling this function causes the system do recovery.
22 @retval EFI_SUCESS Sucess to do recovery.
23 @retval Others Fail to do recovery.
32 EFI_PEI_RECOVERY_MODULE_PPI
*PeiRecovery
;
34 Status
= PeiServicesLocatePpi (
35 &gEfiPeiRecoveryModulePpiGuid
,
40 ASSERT_EFI_ERROR (Status
);
42 return PeiRecovery
->LoadRecoveryCapsule ((EFI_PEI_SERVICES
**) GetPeiServicesTablePointer(), PeiRecovery
);