summaryrefslogtreecommitdiffstats
path: root/src/net/netdevice.c
diff options
context:
space:
mode:
authorMichael Brown2007-07-03 21:09:14 +0200
committerMichael Brown2007-07-03 21:09:14 +0200
commitfd86c819ba559760b9bf7eaca1b21a0fd81ef6b6 (patch)
treeba4c0aa4612bed0a66d420a93356df09316214e0 /src/net/netdevice.c
parentMerge branch 'master' of /pub/scm/gpxe (diff)
downloadipxe-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.c9
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 );