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>
diff --git a/kernel/init.c b/kernel/init.c
index 6ab4078..cade51a 100644
--- a/kernel/init.c
+++ b/kernel/init.c
@@ -205,14 +205,14 @@
__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 */