efidrvprefix.c File Reference

#include <stdlib.h>
#include <gpxe/init.h>
#include <gpxe/efi/efi.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
EFI_STATUS EFIAPI _start (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *systab)
 EFI entry point.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

EFI_STATUS EFIAPI _start ( EFI_HANDLE  image_handle,
EFI_SYSTEM_TABLE systab 
)

EFI entry point.

Parameters:
image_handle Image handle
systab System table
Return values:
efirc EFI return status code

Definition at line 32 of file efidrvprefix.c.

References efi_init(), efi_snp_install(), initialise(), RC_TO_EFIRC, and startup().

00033                                                       {
00034         EFI_STATUS efirc;
00035 
00036         /* Initialise EFI environment */
00037         if ( ( efirc = efi_init ( image_handle, systab ) ) != 0 )
00038                 return efirc;
00039 
00040         /* Initialise gPXE environment */
00041         initialise();
00042         startup();
00043 
00044         /* Install SNP driver and return */
00045         return RC_TO_EFIRC ( efi_snp_install () );
00046 }


Generated on Tue Apr 6 20:01:13 2010 for gPXE by  doxygen 1.5.7.1