summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/riscv/boot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/arch/riscv/boot.c b/src/arch/riscv/boot.c
index 96526bf64b..743549081d 100644
--- a/src/arch/riscv/boot.c
+++ b/src/arch/riscv/boot.c
@@ -24,11 +24,9 @@ void arch_prog_run(struct prog *prog)
if (ENV_RAMSTAGE && prog_type(prog) == PROG_PAYLOAD) {
initVirtualMemory();
- write_csr(mepc, doit);
- asm volatile("eret");
- } else {
- doit(prog_entry_arg(prog));
}
+
+ doit(prog_entry_arg(prog));
}
int arch_supports_bounce_buffer(void)