diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-07-03 20:09:14 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-07-03 20:09:14 +0100 |
commit | fd86c819ba559760b9bf7eaca1b21a0fd81ef6b6 (patch) | |
tree | ba4c0aa4612bed0a66d420a93356df09316214e0 /src/core/main.c | |
parent | 4bcfe7507b322bb5ed2faf11e3b6f1cf1abc83ae (diff) | |
download | ipxe-fd86c819ba559760b9bf7eaca1b21a0fd81ef6b6.tar.gz |
Use a linker-table based system to automatically mark and start up
permanent processes, rather than requiring each one to have its own
initialisation function.
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c index 64e098ca..5b01df9c 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -16,6 +16,7 @@ Literature dealing with the network protocols: #include <gpxe/heap.h> #include <gpxe/init.h> +#include <gpxe/process.h> #include <gpxe/device.h> #include <gpxe/shell.h> #include <gpxe/shell_banner.h> @@ -29,8 +30,10 @@ Literature dealing with the network protocols: * Call this function only once, before doing (almost) anything else. */ static void startup ( void ) { - hide_etherboot(); init_heap(); + init_processes(); + + hide_etherboot(); call_init_fns(); probe_devices(); } |