2005-03-08 19:53:11 +01:00
|
|
|
/**************************************************************************
|
2010-04-19 21:16:01 +02:00
|
|
|
iPXE - Network Bootstrap Program
|
2005-03-08 19:53:11 +01: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 16:41:06 +02:00
|
|
|
FILE_LICENCE ( GPL2_OR_LATER );
|
|
|
|
|
2013-03-11 19:38:42 +01:00
|
|
|
#include <stddef.h>
|
2008-03-27 00:16:20 +01:00
|
|
|
#include <stdio.h>
|
2010-04-19 21:16:01 +02:00
|
|
|
#include <ipxe/init.h>
|
2007-01-10 03:03:20 +01:00
|
|
|
#include <usr/autoboot.h>
|
2008-10-31 20:10:28 +01:00
|
|
|
#include <config/general.h>
|
2006-06-01 17:53:05 +02:00
|
|
|
|
2007-01-14 01:16:41 +01:00
|
|
|
/**
|
|
|
|
* Main entry point
|
|
|
|
*
|
|
|
|
* @ret rc Return status code
|
|
|
|
*/
|
2008-11-19 01:18:32 +01:00
|
|
|
__asmcall int main ( void ) {
|
2005-03-08 19:53:11 +01:00
|
|
|
|
2013-11-18 15:07:37 +01:00
|
|
|
/* Perform one-time-only initialisation (e.g. heap) */
|
|
|
|
initialise();
|
|
|
|
|
2009-01-08 04:48:30 +01:00
|
|
|
/* Some devices take an unreasonably long time to initialise */
|
2010-04-25 02:47:03 +02:00
|
|
|
printf ( PRODUCT_SHORT_NAME " initialising devices..." );
|
2007-01-14 01:16:41 +01:00
|
|
|
startup();
|
2010-04-25 02:47:03 +02:00
|
|
|
printf ( "ok\n" );
|
2006-05-02 23:10:45 +02:00
|
|
|
|
2013-03-11 19:38:42 +01:00
|
|
|
ipxe ( NULL );
|
2008-03-27 00:16:20 +01:00
|
|
|
|
2011-01-27 21:35:48 +01:00
|
|
|
shutdown_exit();
|
2005-04-12 18:43:18 +02:00
|
|
|
|
2007-01-14 01:16:41 +01:00
|
|
|
return 0;
|
2005-03-08 19:53:11 +01:00
|
|
|
}
|