mirror of
https://github.com/ipxe/ipxe
synced 2026-03-16 03:02:07 +03:00
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.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user