]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - IPXE/ipxe-3fe683e/src/core/main.c
Add German language (#57)
[Ventoy.git] / IPXE / ipxe-3fe683e / src / core / main.c
1 /**************************************************************************
2 iPXE - Network Bootstrap Program
3
4 Literature dealing with the network protocols:
5 ARP - RFC826
6 RARP - RFC903
7 UDP - RFC768
8 BOOTP - RFC951, RFC2132 (vendor extensions)
9 DHCP - RFC2131, RFC2132 (options)
10 TFTP - RFC1350, RFC2347 (options), RFC2348 (blocksize), RFC2349 (tsize)
11 RPC - RFC1831, RFC1832 (XDR), RFC1833 (rpcbind/portmapper)
12
13 **************************************************************************/
14
15 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
16
17 #include <stddef.h>
18 #include <stdio.h>
19 #include <ipxe/init.h>
20 #include <ipxe/version.h>
21 #include <usr/autoboot.h>
22 #include <ventoy.h>
23
24 /**
25 * Main entry point
26 *
27 * @ret rc Return status code
28 */
29 __asmcall int main ( void ) {
30 int rc;
31
32 /* Perform one-time-only initialisation (e.g. heap) */
33 initialise();
34
35 /* Some devices take an unreasonably long time to initialise */
36 //printf ( "%s initialising devices...", product_short_name );
37 startup();
38 //printf ( "ok\n" );
39
40 /* Attempt to boot */
41 if ( ( rc = ventoy_boot_vdisk ( NULL ) ) != 0 )
42 goto err_ipxe;
43
44 err_ipxe:
45 shutdown_exit();
46 return rc;
47 }