summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-11-03 11:44:37 +0800
committerbernard <[email protected]>2017-11-03 11:44:37 +0800
commit6d9fcd04d2fe0ed5f8d2df220f209cbbc8d1907b (patch)
treee4d79c5bdf2fffdfeb14c7c6d6231f40e88912ff /include
parentf08d1f503408b9eab9ce440828639915b7db7520 (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 'include')
-rw-r--r--include/rtdef.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 43920ea325..c7c0594ff4 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -199,15 +199,14 @@ typedef int (*init_fn_t)(void);
/* board init routines will be called in board_init() function */
#define INIT_BOARD_EXPORT(fn) INIT_EXPORT(fn, "1")
-/* device/component/fs/app init routines will be called in init_thread */
-/* device initialization */
-#define INIT_DEVICE_EXPORT(fn) INIT_EXPORT(fn, "2")
+
+/* pre/device/component/env/app init routines will be called in init_thread */
/* components pre-initialization (pure software initilization) */
#define INIT_PREV_EXPORT(fn) INIT_EXPORT(fn, "2")
+/* device initialization */
+#define INIT_DEVICE_EXPORT(fn) INIT_EXPORT(fn, "3")
/* components initialization (dfs, lwip, ...) */
-#define INIT_COMPONENT_EXPORT(fn) INIT_EXPORT(fn, "3")
-/* file system initialization (dfs-elm, dfs-rom, ...) */
-#define INIT_FS_EXPORT(fn) INIT_EXPORT(fn, "4")
+#define INIT_COMPONENT_EXPORT(fn) INIT_EXPORT(fn, "4")
/* environment initialization (mount disk, ...) */
#define INIT_ENV_EXPORT(fn) INIT_EXPORT(fn, "5")
/* appliation initialization (rtgui application etc ...) */