Home | History | Annotate | Download | only in Library
      1 /** @file
      2   Module entry point library for DXE core.
      3 
      4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
      5 This program and the accompanying materials
      6 are licensed and made available under the terms and conditions of the BSD License
      7 which accompanies this distribution.  The full text of the license may be found at
      8 http://opensource.org/licenses/bsd-license.php
      9 
     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.
     12 
     13 **/
     14 
     15 #ifndef __MODULE_ENTRY_POINT_H__
     16 #define __MODULE_ENTRY_POINT_H__
     17 
     18 ///
     19 /// Global variable that contains a pointer to the Hob List passed into the DXE Core entry point.
     20 ///
     21 extern VOID  *gHobList;
     22 
     23 
     24 /**
     25   The entry point of PE/COFF Image for the DXE Core.
     26 
     27   This function is the entry point for the DXE Core. This function is required to call
     28   ProcessModuleEntryPointList() and ProcessModuleEntryPointList() is never expected to return.
     29   The DXE Core is responsible for calling ProcessLibraryConstructorList() as soon as the EFI
     30   System Table and the image handle for the DXE Core itself have been established.
     31   If ProcessModuleEntryPointList() returns, then ASSERT() and halt the system.
     32 
     33   @param  HobStart  Pointer to the beginning of the HOB List passed in from the PEI Phase.
     34 
     35 **/
     36 VOID
     37 EFIAPI
     38 _ModuleEntryPoint (
     39   IN VOID  *HobStart
     40   );
     41 
     42 
     43 /**
     44   Required by the EBC compiler and identical in functionality to _ModuleEntryPoint().
     45 
     46   This function is required to call _ModuleEntryPoint() passing in HobStart.
     47 
     48   @param  HobStart  Pointer to the beginning of the HOB List passed in from the PEI Phase.
     49 
     50 **/
     51 VOID
     52 EFIAPI
     53 EfiMain (
     54   IN VOID  *HobStart
     55   );
     56 
     57 
     58 /**
     59   Autogenerated function that calls the library constructors for all of the module's dependent libraries.
     60 
     61   This function must be called by _ModuleEntryPoint().
     62   This function calls the set of library constructors for the set of library instances
     63   that a module depends on.  This includes library instances that a module depends on
     64   directly and library instances that a module depends on indirectly through other
     65   libraries. This function is autogenerated by build tools and those build tools are
     66   responsible for collecting the set of library instances, determine which ones have
     67   constructors, and calling the library constructors in the proper order based upon
     68   each of the library instances own dependencies.
     69 
     70   @param  ImageHandle  The image handle of the DXE Core.
     71   @param  SystemTable  A pointer to the EFI System Table.
     72 
     73 **/
     74 VOID
     75 EFIAPI
     76 ProcessLibraryConstructorList (
     77   IN EFI_HANDLE        ImageHandle,
     78   IN EFI_SYSTEM_TABLE  *SystemTable
     79   );
     80 
     81 
     82 /**
     83   Autogenerated function that calls a set of module entry points.
     84 
     85   This function must be called by _ModuleEntryPoint().
     86   This function calls the set of module entry points.
     87   This function is autogenerated by build tools and those build tools are responsible
     88   for collecting the module entry points and calling them in a specified order.
     89 
     90   @param  HobStart  Pointer to the beginning of the HOB List passed in from the PEI Phase.
     91 
     92 **/
     93 VOID
     94 EFIAPI
     95 ProcessModuleEntryPointList (
     96   IN VOID  *HobStart
     97   );
     98 
     99 #endif
    100