3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 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.
20 EFI 2.0 PEIM to initialize the cache and program for unlock processor
27 #include <Guid/FirmwareFileSystem2.h>
28 #include <Ppi/FirmwareVolumeInfo.h>
29 #include <Library/PcdLib.h>
30 #include <Library/DebugLib.h>
32 EFI_PEI_FIRMWARE_VOLUME_INFO_PPI mAddtionFVPpi
= {
33 EFI_FIRMWARE_FILE_SYSTEM2_GUID
,
34 (VOID
*)(UINTN
)FixedPcdGet32(PcdFlashFvRecovery2Base
),
35 FixedPcdGet32(PcdFlashFvRecovery2Size
),
40 EFI_PEI_PPI_DESCRIPTOR mPpiList
[] = {
41 (EFI_PEI_PPI_DESCRIPTOR_PPI
| EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST
),
42 &gEfiPeiFirmwareVolumeInfoPpiGuid
,
48 Add Recovery Fv Info to the Pei Core.
50 @param PeiServices General purpose services available to every PEIM.
57 PeimInitializeFvInfo (
58 IN EFI_PEI_FILE_HANDLE FileHandle
,
59 IN CONST EFI_PEI_SERVICES
**PeiServices
63 // GC_TODO: FfsHeader - add argument and description to function comment
67 Status
= (**PeiServices
).InstallPpi (PeiServices
, &mPpiList
[0]);
68 ASSERT_EFI_ERROR (Status
);
70 DEBUG ((EFI_D_INFO
, "\nFvInfo Add Fv Info\n"));