You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.c 1022B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**************************************************************************
  2. iPXE - Network Bootstrap Program
  3. Literature dealing with the network protocols:
  4. ARP - RFC826
  5. RARP - RFC903
  6. UDP - RFC768
  7. BOOTP - RFC951, RFC2132 (vendor extensions)
  8. DHCP - RFC2131, RFC2132 (options)
  9. TFTP - RFC1350, RFC2347 (options), RFC2348 (blocksize), RFC2349 (tsize)
  10. RPC - RFC1831, RFC1832 (XDR), RFC1833 (rpcbind/portmapper)
  11. **************************************************************************/
  12. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  13. #include <stddef.h>
  14. #include <stdio.h>
  15. #include <ipxe/init.h>
  16. #include <ipxe/version.h>
  17. #include <usr/autoboot.h>
  18. /**
  19. * Main entry point
  20. *
  21. * @ret rc Return status code
  22. */
  23. __asmcall int main ( void ) {
  24. /* Perform one-time-only initialisation (e.g. heap) */
  25. initialise();
  26. /* Some devices take an unreasonably long time to initialise */
  27. printf ( "%s initialising devices...", product_short_name );
  28. startup();
  29. printf ( "ok\n" );
  30. ipxe ( NULL );
  31. shutdown_exit();
  32. return 0;
  33. }