From 0fcd620404e51d69360b8c3eb37728c1026459e6 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 13 Feb 2015 13:41:21 -0600 Subject: [PATCH] Move the initialization of the networking subsystem to AFTER up_initialize is called. Fromo Macs Neklyudov. --- sched/init/os_start.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sched/init/os_start.c b/sched/init/os_start.c index fcb305180bd..31be44e2723 100644 --- a/sched/init/os_start.c +++ b/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 */