init/os_bringup : Move the preapp task creation
preapp task should be created regardless of Binary Manager until now.
It will be modified to be merged into binary manager.
@@ -252,15 +252,6 @@ static inline void os_do_appstart(void)
net_initialize();
#endif
-#ifdef CONFIG_BINARY_MANAGER
- svdbg("Starting binary manager thread\n");
-
- pid = kernel_thread(BINARY_MANAGER_NAME, BINARY_MANAGER_PRIORITY, BINARY_MANAGER_STACKSIZE, binary_manager, NULL);
- if (pid < 0) {
- sdbg("Failed to start binary manager");
- }
-#endif
-
#ifdef CONFIG_SYSTEM_PREAPP_INIT
svdbg("Starting application init task\n");
@@ -275,6 +266,15 @@ static inline void os_do_appstart(void)
}
#endif
+#ifdef CONFIG_BINARY_MANAGER
+ svdbg("Starting binary manager thread\n");
+
+ pid = kernel_thread(BINARY_MANAGER_NAME, BINARY_MANAGER_PRIORITY, BINARY_MANAGER_STACKSIZE, binary_manager, NULL);
+ if (pid < 0) {
+ sdbg("Failed to start binary manager");
+ }
+#endif
+
#ifdef CONFIG_ENABLE_HEAPINFO
heapinfo_drv_register();
#endif
