2 Recovery Library. This library class defines a set of methods related do recovery.
4 Copyright (c) 2006 - 2008 Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 #include <FrameworkPei.h>
15 #include <Library/PeiServicesLib.h>
16 #include <Library/PeiServicesTablePointerLib.h>
17 #include <Library/DebugLib.h>
19 #include <Ppi/RecoveryModule.h>
22 Calling this function causes the system do recovery.
24 @retval EFI_SUCESS Sucess to do recovery.
25 @retval Others Fail to do recovery.
34 EFI_PEI_RECOVERY_MODULE_PPI
*PeiRecovery
;
36 Status
= PeiServicesLocatePpi (
37 &gEfiPeiRecoveryModulePpiGuid
,
42 ASSERT_EFI_ERROR (Status
);
44 return PeiRecovery
->LoadRecoveryCapsule ((EFI_PEI_SERVICES
**) GetPeiServicesTablePointer(), PeiRecovery
);