From 6d9fcd04d2fe0ed5f8d2df220f209cbbc8d1907b Mon Sep 17 00:00:00 2001 From: bernard Date: Fri, 3 Nov 2017 11:44:37 +0800 Subject: [Kernel] Change the order of initialization. 1. Remove INIT_FS_EXPORT and change INIT_DEVICE_EXPORT as the first item in the initalization thread. 2. Move the eth_system_device_init into INIT_PREV_EXPORT item. --- components/net/lwip-1.4.1/src/netif/ethernetif.c | 4 ++-- components/net/lwip-2.0.2/src/netif/ethernetif.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'components/net') diff --git a/components/net/lwip-1.4.1/src/netif/ethernetif.c b/components/net/lwip-1.4.1/src/netif/ethernetif.c index 9fbb883f36..7a8cde12da 100644 --- a/components/net/lwip-1.4.1/src/netif/ethernetif.c +++ b/components/net/lwip-1.4.1/src/netif/ethernetif.c @@ -434,9 +434,9 @@ int eth_system_device_init(void) RT_ASSERT(result == RT_EOK); #endif - return (int)result; + return (int)result; } -INIT_DEVICE_EXPORT(eth_system_device_init); +INIT_PREV_EXPORT(eth_system_device_init); #ifdef RT_USING_FINSH #include diff --git a/components/net/lwip-2.0.2/src/netif/ethernetif.c b/components/net/lwip-2.0.2/src/netif/ethernetif.c index 09d6140b16..08d1242e71 100644 --- a/components/net/lwip-2.0.2/src/netif/ethernetif.c +++ b/components/net/lwip-2.0.2/src/netif/ethernetif.c @@ -452,7 +452,7 @@ int eth_system_device_init(void) return (int)result; } -INIT_DEVICE_EXPORT(eth_system_device_init); +INIT_PREV_EXPORT(eth_system_device_init); #ifdef RT_USING_FINSH #include -- cgit v1.3.1