summaryrefslogtreecommitdiffstats
path: root/arch/riscv/boot/entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/boot/entry.c')
-rw-r--r--arch/riscv/boot/entry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/riscv/boot/entry.c b/arch/riscv/boot/entry.c
index e4a5c2208d..f5a536fc78 100644
--- a/arch/riscv/boot/entry.c
+++ b/arch/riscv/boot/entry.c
@@ -25,6 +25,7 @@ void __noreturn __naked barebox_riscv_entry(unsigned long membase,
{
unsigned long stack_top = riscv_mem_stack_top(membase, membase + memsize);
asm volatile ("move sp, %0" : : "r"(stack_top));
- barebox_pbl_start(membase, memsize, boarddata, flags);
+ riscv_set_flags(flags);
+ barebox_pbl_start(membase, memsize, boarddata);
}