mirror of
https://github.com/apache/nuttx.git
synced 2026-09-23 16:13:18 +08:00
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:
committed by
Masayuki Ishikawa
parent
0d9a3d94eb
commit
1f7147129a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user