]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | \r | |
3 | Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r | |
4 | \r\r | |
5 | This program and the accompanying materials are licensed and made available under\r\r | |
6 | the terms and conditions of the BSD License that accompanies this distribution. \r\r | |
7 | The full text of the license may be found at \r\r | |
8 | http://opensource.org/licenses/bsd-license.php. \r\r | |
9 | \r\r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r\r | |
12 | \r\r | |
13 | \r | |
14 | Module Name:\r | |
15 | \r | |
16 | FvInfoPei.c\r | |
17 | \r | |
18 | Abstract:\r | |
19 | \r | |
20 | EFI 2.0 PEIM to initialize the cache and program for unlock processor\r | |
21 | \r | |
22 | \r | |
23 | \r | |
24 | --*/\r | |
25 | \r | |
26 | #include <PiPei.h>\r | |
27 | #include <Guid/FirmwareFileSystem2.h>\r | |
28 | #include <Ppi/FirmwareVolumeInfo.h>\r | |
29 | #include <Library/PcdLib.h>\r | |
30 | #include <Library/DebugLib.h>\r | |
31 | \r | |
32 | EFI_PEI_FIRMWARE_VOLUME_INFO_PPI mAddtionFVPpi = {\r | |
33 | EFI_FIRMWARE_FILE_SYSTEM2_GUID,\r | |
34 | (VOID*)(UINTN)FixedPcdGet32(PcdFlashFvRecovery2Base),\r | |
35 | FixedPcdGet32(PcdFlashFvRecovery2Size),\r | |
36 | NULL,\r | |
37 | NULL\r | |
38 | };\r | |
39 | \r | |
40 | EFI_PEI_PPI_DESCRIPTOR mPpiList[] = {\r | |
41 | (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),\r | |
42 | &gEfiPeiFirmwareVolumeInfoPpiGuid,\r | |
43 | &mAddtionFVPpi\r | |
44 | };\r | |
45 | \r | |
46 | \r | |
47 | /**\r | |
48 | Add Recovery Fv Info to the Pei Core.\r | |
49 | \r | |
50 | @param PeiServices General purpose services available to every PEIM.\r | |
51 | \r | |
52 | @retval Status\r | |
53 | \r | |
54 | **/\r | |
55 | EFI_STATUS\r | |
56 | EFIAPI\r | |
57 | PeimInitializeFvInfo (\r | |
58 | IN EFI_PEI_FILE_HANDLE FileHandle,\r | |
59 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
60 | )\r | |
61 | \r | |
62 | //\r | |
63 | // GC_TODO: FfsHeader - add argument and description to function comment\r | |
64 | //\r | |
65 | {\r | |
66 | EFI_STATUS Status;\r | |
67 | Status = (**PeiServices).InstallPpi (PeiServices, &mPpiList[0]);\r | |
68 | ASSERT_EFI_ERROR (Status);\r | |
69 | \r | |
70 | DEBUG ((EFI_D_INFO, "\nFvInfo Add Fv Info\n"));\r | |
71 | \r | |
72 | return Status;\r | |
73 | }\r |