summaryrefslogtreecommitdiffstats
path: root/src/net/netdevice.c
diff options
context:
space:
mode:
authorMichael Brown2006-04-30 03:08:52 +0200
committerMichael Brown2006-04-30 03:08:52 +0200
commit352bf1bda2d4c0d08e9b674702d8ba754f4d1747 (patch)
tree6446555769a5e1a2cecc56d09e19f4191f99827a /src/net/netdevice.c
parentChange semantics of network API so that packet-absorbing calls *always* (diff)
downloadipxe-352bf1bda2d4c0d08e9b674702d8ba754f4d1747.tar.gz
ipxe-352bf1bda2d4c0d08e9b674702d8ba754f4d1747.tar.xz
ipxe-352bf1bda2d4c0d08e9b674702d8ba754f4d1747.zip
Move init.h to gpxe/init.h.
Diffstat (limited to 'src/net/netdevice.c')
-rw-r--r--src/net/netdevice.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index 19db792e..47b37cf7 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -24,6 +24,7 @@
#include <gpxe/pkbuff.h>
#include <gpxe/tables.h>
#include <gpxe/process.h>
+#include <gpxe/init.h>
#include <gpxe/netdevice.h>
/** @file
@@ -287,8 +288,6 @@ int net_rx_process ( struct pk_buff *pkb ) {
return 0;
}
-
-
/**
* Single-step the network stack
*
@@ -318,10 +317,9 @@ static struct process net_process = {
.step = net_step,
};
+/** Initialise the networking stack process */
static void init_net ( void ) {
schedule ( &net_process );
}
-#include <init.h>
-
-INIT_FN ( INIT_RPC, init_net, NULL, NULL );
+INIT_FN ( INIT_PROCESS, init_net, NULL, NULL );