diff --git a/arch/risc-v/src/k230/k230_start.c b/arch/risc-v/src/k230/k230_start.c index 0925352b18..37a8e2ee36 100644 --- a/arch/risc-v/src/k230/k230_start.c +++ b/arch/risc-v/src/k230/k230_start.c @@ -117,7 +117,8 @@ void k230_start(int mhartid, const char *dtb) #ifdef CONFIG_RISCV_PERCPU_SCRATCH riscv_percpu_add_hart(mhartid); -#else +#endif +#ifndef CONFIG_BUILD_KERNEL k230_copy_init_data(); #endif }