diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 8040f51f8..37b235efb 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -25,6 +25,7 @@ #include #include #include +#include #if !CONFIG_KERNEL_COHERENCE #include @@ -768,6 +769,10 @@ int z_wrapper_cpu_enable_secondary_core(int id) if (arch_cpu_active(id)) return 0; +#if ZEPHYR_VERSION(3, 0, 99) <= ZEPHYR_VERSION_CODE + z_init_cpu(id); +#endif + atomic_clear(&start_flag); atomic_clear(&ready_flag);