+++ /dev/null
-\r
-/** @file\r
- Entry point to a PEIM.\r
-\r
-Copyright (c) 2006, Intel Corporation<BR>\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-/**\r
- Image entry point of Peim.\r
-\r
- @param FfsHeader Pointer to FFS header the loaded driver.\r
- @param PeiServices Pointer to the PEI services.\r
-\r
- @return Status returned by entry points of Peims.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-_ModuleEntryPoint (\r
- IN EFI_FFS_FILE_HEADER *FfsHeader,\r
- IN EFI_PEI_SERVICES **PeiServices\r
- )\r
-{\r
- if (_gPeimRevision != 0) {\r
- //\r
- // Make sure that the PEI spec revision of the platform is >= PEI spec revision of the driver\r
- //\r
- ASSERT ((*PeiServices)->Hdr.Revision >= _gPeimRevision);\r
- }\r
-\r
- //\r
- // Call constructor for all libraries\r
- //\r
- ProcessLibraryConstructorList (FfsHeader, PeiServices);\r
-\r
- //\r
- // Call the driver entry point\r
- //\r
- return ProcessModuleEntryPointList (FfsHeader, PeiServices);\r
-}\r
-\r
-\r
-/**\r
- Wrapper of Peim image entry point.\r
-\r
- @param FfsHeader Pointer to FFS header the loaded driver.\r
- @param PeiServices Pointer to the PEI services.\r
-\r
- @return Status returned by entry points of Peims.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-EfiMain (\r
- IN EFI_FFS_FILE_HEADER *FfsHeader,\r
- IN EFI_PEI_SERVICES **PeiServices\r
- )\r
-{\r
- return _ModuleEntryPoint (FfsHeader, PeiServices);\r
-}\r