diff options
| author | bernard <[email protected]> | 2017-11-03 11:44:37 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-11-03 11:44:37 +0800 |
| commit | 6d9fcd04d2fe0ed5f8d2df220f209cbbc8d1907b (patch) | |
| tree | e4d79c5bdf2fffdfeb14c7c6d6231f40e88912ff /components/net | |
| parent | f08d1f503408b9eab9ce440828639915b7db7520 (diff) | |
[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.
Diffstat (limited to 'components/net')
| -rw-r--r-- | components/net/lwip-1.4.1/src/netif/ethernetif.c | 4 | ||||
| -rw-r--r-- | components/net/lwip-2.0.2/src/netif/ethernetif.c | 2 |
2 files changed, 3 insertions, 3 deletions
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 <finsh.h> 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 <finsh.h> |
