arch/risc-v: fix break on kernel mode

merge conflicts lead to incorrect ifdef/endif scope

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an 2024-04-26 08:42:20 +08:00 committed by Masayuki Ishikawa
parent 0d9a3d94eb
commit 1f7147129a
1 changed files with 2 additions and 1 deletions

View File

@ -117,12 +117,13 @@ void qemu_rv_start(int mhartid, const char *dtb)
#ifndef CONFIG_BUILD_KERNEL
qemu_rv_clear_bss();
#endif
#ifdef CONFIG_RISCV_PERCPU_SCRATCH
riscv_percpu_add_hart(mhartid);
#endif
#endif
#ifdef CONFIG_DEVICE_TREE
fdt_register(dtb);
#endif