2005-03-08 18:53:11 +00:00
|
|
|
/**************************************************************************
|
2010-04-19 20:16:01 +01:00
|
|
|
iPXE - Network Bootstrap Program
|
2005-03-08 18:53:11 +00:00
|
|
|
|
|
|
|
|
Literature dealing with the network protocols:
|
|
|
|
|
ARP - RFC826
|
|
|
|
|
RARP - RFC903
|
|
|
|
|
UDP - RFC768
|
|
|
|
|
BOOTP - RFC951, RFC2132 (vendor extensions)
|
|
|
|
|
DHCP - RFC2131, RFC2132 (options)
|
|
|
|
|
TFTP - RFC1350, RFC2347 (options), RFC2348 (blocksize), RFC2349 (tsize)
|
|
|
|
|
RPC - RFC1831, RFC1832 (XDR), RFC1833 (rpcbind/portmapper)
|
|
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
2009-05-01 15:41:06 +01:00
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
|
|
2013-03-11 18:38:42 +00:00
|
|
|
#include <stddef.h>
|
2008-03-26 23:16:20 +00:00
|
|
|
#include <stdio.h>
|
2010-04-19 20:16:01 +01:00
|
|
|
#include <ipxe/init.h>
|
2007-01-10 02:03:20 +00:00
|
|
|
#include <usr/autoboot.h>
|
2008-10-31 19:10:28 +00:00
|
|
|
#include <config/general.h>
|
2006-06-01 15:53:05 +00:00
|
|
|
|
2007-01-14 00:16:41 +00:00
|
|
|
/**
|
|
|
|
|
* Main entry point
|
|
|
|
|
*
|
|
|
|
|
* @ret rc Return status code
|
|
|
|
|
*/
|
2008-11-18 16:18:32 -08:00
|
|
|
__asmcall int main ( void ) {
|
2005-03-08 18:53:11 +00:00
|
|
|
|
2013-11-18 14:07:37 +00:00
|
|
|
/* Perform one-time-only initialisation (e.g. heap) */
|
|
|
|
|
initialise();
|
|
|
|
|
|
2009-01-08 03:48:30 +00:00
|
|
|
/* Some devices take an unreasonably long time to initialise */
|
2010-04-25 01:47:03 +01:00
|
|
|
printf ( PRODUCT_SHORT_NAME " initialising devices..." );
|
2007-01-14 00:16:41 +00:00
|
|
|
startup();
|
2010-04-25 01:47:03 +01:00
|
|
|
printf ( "ok\n" );
|
2006-05-02 21:10:45 +00:00
|
|
|
|
2013-03-11 18:38:42 +00:00
|
|
|
ipxe ( NULL );
|
2008-03-26 23:16:20 +00:00
|
|
|
|
2011-01-27 20:35:48 +00:00
|
|
|
shutdown_exit();
|
2005-04-12 16:43:18 +00:00
|
|
|
|
2007-01-14 00:16:41 +00:00
|
|
|
return 0;
|
2005-03-08 18:53:11 +00:00
|
|
|
}
|