aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/net.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index 11c66ff..4288ae4 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1,2 +1,18 @@
+#include <unistd.h>
+
+#include <init.h>
+#include <log.h>
#include <subsys.h>
+int net_subsystem(void)
+{
+ print(LOG_NOTICE "net: starting net subsystem");
+ usleep(10000); // do net stuff
+ return 0;
+}
+
+void net_initcall()
+{
+ start_subsystem(net_subsystem);
+}
+l1_initcall(net_initcall);