summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-02-13 13:41:21 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-02-13 13:41:21 -0600
commitd998cbdfa6c10dbd8074dd43c39c23a006505987 (patch)
treebd4dd3b257d9e8aa74d52024334cccdbfb8fc6f1
parent4bac7ce0209a23605a6ec833527ff18ec3e68400 (diff)
downloadnuttx-d998cbdfa6c10dbd8074dd43c39c23a006505987.tar.gz
nuttx-d998cbdfa6c10dbd8074dd43c39c23a006505987.tar.bz2
nuttx-d998cbdfa6c10dbd8074dd43c39c23a006505987.zip
Move the initialization of the networking subsystem to AFTER up_initialize is called. Fromo Macs Neklyudov.
-rw-r--r--nuttx/sched/init/os_start.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/sched/init/os_start.c b/nuttx/sched/init/os_start.c
index fcb305180..31be44e27 100644
--- a/nuttx/sched/init/os_start.c
+++ b/nuttx/sched/init/os_start.c
@@ -465,12 +465,6 @@ void os_start(void)
fs_initialize();
#endif
-#ifdef CONFIG_NET
- /* Initialize the network system */
-
- 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
@@ -479,6 +473,12 @@ void os_start(void)
up_initialize();
+#ifdef CONFIG_NET
+ /* Initialize the network system */
+
+ net_initialize();
+#endif
+
#ifdef CONFIG_MM_SHM
/* Initialize shared memory support */