diff --git a/kernel/init.c b/kernel/init.c index d2da037d1b0..6d0b005963d 100644 --- a/kernel/init.c +++ b/kernel/init.c @@ -400,11 +400,11 @@ FUNC_NORETURN void z_cstart(void) /* gcov hook needed to get the coverage report.*/ gcov_static_init(); - LOG_CORE_INIT(); - /* perform any architecture-specific initialization */ arch_kernel_init(); + LOG_CORE_INIT(); + #if defined(CONFIG_MULTITHREADING) /* Note: The z_ready_thread() call in prepare_multithreading() requires * a dummy thread even if CONFIG_ARCH_HAS_CUSTOM_SWAP_TO_MAIN=y