diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-02-13 13:41:21 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-02-13 13:41:21 -0600 |
commit | d998cbdfa6c10dbd8074dd43c39c23a006505987 (patch) | |
tree | bd4dd3b257d9e8aa74d52024334cccdbfb8fc6f1 /nuttx/sched | |
parent | 4bac7ce0209a23605a6ec833527ff18ec3e68400 (diff) | |
download | px4-nuttx-d998cbdfa6c10dbd8074dd43c39c23a006505987.tar.gz px4-nuttx-d998cbdfa6c10dbd8074dd43c39c23a006505987.tar.bz2 px4-nuttx-d998cbdfa6c10dbd8074dd43c39c23a006505987.zip |
Move the initialization of the networking subsystem to AFTER up_initialize is called. Fromo Macs Neklyudov.
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/init/os_start.c | 12 |
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 */ |