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:
parent
0d9a3d94eb
commit
1f7147129a
|
@ -117,12 +117,13 @@ void qemu_rv_start(int mhartid, const char *dtb)
|
||||||
|
|
||||||
#ifndef CONFIG_BUILD_KERNEL
|
#ifndef CONFIG_BUILD_KERNEL
|
||||||
qemu_rv_clear_bss();
|
qemu_rv_clear_bss();
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_RISCV_PERCPU_SCRATCH
|
#ifdef CONFIG_RISCV_PERCPU_SCRATCH
|
||||||
riscv_percpu_add_hart(mhartid);
|
riscv_percpu_add_hart(mhartid);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_DEVICE_TREE
|
#ifdef CONFIG_DEVICE_TREE
|
||||||
fdt_register(dtb);
|
fdt_register(dtb);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue