summaryrefslogtreecommitdiffstats
path: root/nuttx/sched/os_start.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2007-09-09 11:58:50 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2007-09-09 11:58:50 +0000
commit9ab2426199e860d5e2f40468c42c33ef0c5f1fb1 (patch)
treea5ac9dcc5be841e9edff869055b73651f525072c /nuttx/sched/os_start.c
parent565c15c7cde59f4078f7a47bf4efb2ed40dea36f (diff)
Added network init; refactored some header files
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@338 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched/os_start.c')
-rw-r--r--nuttx/sched/os_start.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/nuttx/sched/os_start.c b/nuttx/sched/os_start.c
index c017782957..7591e88781 100644
--- a/nuttx/sched/os_start.c
+++ b/nuttx/sched/os_start.c
@@ -44,8 +44,10 @@
#include <nuttx/arch.h>
#include <nuttx/compiler.h>
#include <nuttx/fs.h>
+#include <nuttx/net.h>
#include <nuttx/lib.h>
-#include <nuttx/os_external.h>
+#include <nuttx/mm.h>
+#include <nuttx/init.h>
#include "os_internal.h"
#include "sig_internal.h"
#include "wd_internal.h"
@@ -387,6 +389,17 @@ void os_start(void)
}
#endif
+ /* Initialize the network system */
+
+#ifdef CONFIG_NET
+#if 0
+ if (net_initialize != NULL)
+#endif
+ {
+ net_initialize();
+ }
+#endif
+
/* The processor specific details of running the operating system
* will be handled here. Such things as setting up interrupt
* service routines and starting the clock are some of the things