]>
Commit | Line | Data |
---|---|---|
3cbfba02 DW |
1 | /** @file\r |
2 | This PEIM will parse the hoblist from fsp and report them into pei core.\r | |
3 | This file contains the main entrypoint of the PEIM.\r | |
4 | \r | |
5 | Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php.\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | \r | |
17 | #include <PiPei.h>\r | |
18 | #include <Ppi/MasterBootMode.h>\r | |
19 | \r | |
20 | static EFI_PEI_PPI_DESCRIPTOR mPpiList[] = {\r | |
21 | {\r | |
22 | EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,\r | |
23 | &gEfiPeiMasterBootModePpiGuid,\r | |
24 | NULL\r | |
25 | },\r | |
26 | };\r | |
27 | \r | |
28 | /**\r | |
29 | This is the entrypoint of PEIM\r | |
30 | \r | |
31 | @param FileHandle Handle of the file being invoked.\r | |
32 | @param PeiServices Describes the list of possible PEI Services.\r | |
33 | \r | |
34 | @retval EFI_SUCCESS if it completed successfully.\r | |
35 | **/\r | |
36 | EFI_STATUS\r | |
37 | EFIAPI\r | |
38 | BootModePeiEntryPoint (\r | |
39 | IN EFI_PEI_FILE_HANDLE FileHandle,\r | |
40 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
41 | )\r | |
42 | {\r | |
43 | (*PeiServices)->SetBootMode(PeiServices, BOOT_WITH_FULL_CONFIGURATION);\r | |
44 | \r | |
45 | (*PeiServices)->InstallPpi (PeiServices, &mPpiList[0]);\r | |
46 | \r | |
47 | return EFI_SUCCESS;\r | |
48 | }\r |