diff options
author | Michael Brown | 2007-07-03 21:09:14 +0200 |
---|---|---|
committer | Michael Brown | 2007-07-03 21:09:14 +0200 |
commit | fd86c819ba559760b9bf7eaca1b21a0fd81ef6b6 (patch) | |
tree | ba4c0aa4612bed0a66d420a93356df09316214e0 /src/net/netdevice.c | |
parent | Merge branch 'master' of /pub/scm/gpxe (diff) | |
download | ipxe-fd86c819ba559760b9bf7eaca1b21a0fd81ef6b6.tar.gz ipxe-fd86c819ba559760b9bf7eaca1b21a0fd81ef6b6.tar.xz ipxe-fd86c819ba559760b9bf7eaca1b21a0fd81ef6b6.zip |
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/net/netdevice.c')
-rw-r--r-- | src/net/netdevice.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c index 971830d9..fb4612bc 100644 --- a/src/net/netdevice.c +++ b/src/net/netdevice.c @@ -448,13 +448,6 @@ static void net_step ( struct process *process __unused ) { } /** Networking stack process */ -static struct process net_process = { +struct process net_process __permanent_process = { .step = net_step, }; - -/** Initialise the networking stack process */ -static void init_net ( void ) { - process_add ( &net_process ); -} - -INIT_FN ( INIT_PROCESS, init_net, NULL, NULL ); |