]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/PeimEntryPoint/PeimEntryPoint.c
Fixed unicode file search path issue
[mirror_edk2.git] / MdePkg / Library / PeimEntryPoint / PeimEntryPoint.c
CommitLineData
738ec565 1\r
2/** @file\r
3 Entry point to a PEIM.\r
4\r
5Copyright (c) 2006, Intel Corporation<BR>\r
6All rights reserved. This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16//\r
c7d265a9 17// The package level header files this module uses\r
738ec565 18//\r
c7d265a9 19#include <PiPei.h>\r
20//\r
21// The protocols, PPI and GUID defintions for this module\r
22//\r
23//\r
24// The Library classes this module consumes\r
25//\r
26#include <Library/PeimEntryPoint.h>\r
27#include <Library/DebugLib.h>\r
738ec565 28\r
29/**\r
30 Image entry point of Peim.\r
31\r
32 @param FfsHeader Pointer to FFS header the loaded driver.\r
33 @param PeiServices Pointer to the PEI services.\r
34\r
35 @return Status returned by entry points of Peims.\r
36\r
37**/\r
38EFI_STATUS\r
39EFIAPI\r
40_ModuleEntryPoint (\r
41 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
42 IN EFI_PEI_SERVICES **PeiServices\r
43 )\r
44{\r
45 if (_gPeimRevision != 0) {\r
46 //\r
47 // Make sure that the PEI spec revision of the platform is >= PEI spec revision of the driver\r
48 //\r
49 ASSERT ((*PeiServices)->Hdr.Revision >= _gPeimRevision);\r
50 }\r
51\r
52 //\r
53 // Call constructor for all libraries\r
54 //\r
55 ProcessLibraryConstructorList (FfsHeader, PeiServices);\r
56\r
57 //\r
58 // Call the driver entry point\r
59 //\r
60 return ProcessModuleEntryPointList (FfsHeader, PeiServices);\r
61}\r
62\r
63\r
64/**\r
65 Wrapper of Peim image entry point.\r
66\r
67 @param FfsHeader Pointer to FFS header the loaded driver.\r
68 @param PeiServices Pointer to the PEI services.\r
69\r
70 @return Status returned by entry points of Peims.\r
71\r
72**/\r
73EFI_STATUS\r
74EFIAPI\r
75EfiMain (\r
76 IN EFI_FFS_FILE_HEADER *FfsHeader,\r
77 IN EFI_PEI_SERVICES **PeiServices\r
78 )\r
79{\r
80 return _ModuleEntryPoint (FfsHeader, PeiServices);\r
81}\r