[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.
This commit is contained in:
bernard
2017-11-03 11:44:37 +08:00
parent f08d1f5034
commit 6d9fcd04d2
10 changed files with 43 additions and 35 deletions
@@ -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>
@@ -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>