Skip to content

Commit

Permalink
boot: move boot banner and delay before SYS_INIT_LEVEL_APPLICATION
Browse files Browse the repository at this point in the history
Fixes zephyrproject-rtos#1280, but
also many other failures, where output was garbled due to this. Other
similarly affected issues are missing first benchmark (context) in
latency benchmark and some net tests.

Signed-off-by: Inaky Perez-Gonzalez <[email protected]>
  • Loading branch information
inaky-intc authored and Anas Nashif committed Sep 7, 2017
1 parent 5bbaa12 commit 1abd064
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kernel/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ static void _main(void *unused1, void *unused2, void *unused3)
ARG_UNUSED(unused3);

_sys_device_do_config_level(_SYS_INIT_LEVEL_POST_KERNEL);
if (boot_delay > 0) {
printk("***** delaying boot " STRINGIFY(CONFIG_BOOT_DELAY)
"ms (per build configuration) *****\n");
k_sleep(CONFIG_BOOT_DELAY);
}
PRINT_BOOT_BANNER();

/* Final init level before app starts */
_sys_device_do_config_level(_SYS_INIT_LEVEL_APPLICATION);
Expand All @@ -205,12 +211,6 @@ static void _main(void *unused1, void *unused2, void *unused3)
__do_init_array_aux();
#endif

if (boot_delay > 0) {
printk("***** delaying boot " STRINGIFY(CONFIG_BOOT_DELAY)
"ms (per build configuration) *****\n");
k_sleep(CONFIG_BOOT_DELAY);
}
PRINT_BOOT_BANNER();
_init_static_threads();


Expand Down

0 comments on commit 1abd064

Please sign in to comment.