kernel: init: print boot banner before static threads

The boot banner is being printed after static threads have started, for
example this is visible with tests using ztest.
This puts the banner message before starting any threads.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-08-24 04:27:51 -04:00 committed by Anas Nashif
commit 83088a235c

View file

@ -205,14 +205,14 @@ static void _main(void *unused1, void *unused2, void *unused3)
__do_init_array_aux();
#endif
_init_static_threads();
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();
#ifdef CONFIG_BOOT_TIME_MEASUREMENT
/* record timestamp for kernel's _main() function */