Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 75fd452

Browse files
edersondisouzanashif
authored andcommitted
kernel/init.c: Initialise logging subsystem after arch
So that logging and "satellite" subsystems, such as tracing and object tracking can count on kernel structs being properly initialised, such as `_current_cpu`. Fixes zephyrproject-rtos#42061. Signed-off-by: Ederson de Souza <[email protected]>
1 parent 3543df5 commit 75fd452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/init.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,11 @@ FUNC_NORETURN void z_cstart(void)
400400
/* gcov hook needed to get the coverage report.*/
401401
gcov_static_init();
402402

403-
LOG_CORE_INIT();
404-
405403
/* perform any architecture-specific initialization */
406404
arch_kernel_init();
407405

406+
LOG_CORE_INIT();
407+
408408
#if defined(CONFIG_MULTITHREADING)
409409
/* Note: The z_ready_thread() call in prepare_multithreading() requires
410410
* a dummy thread even if CONFIG_ARCH_HAS_CUSTOM_SWAP_TO_MAIN=y

0 commit comments

Comments
 (0)