summaryrefslogtreecommitdiff
path: root/arch/riscv/cpu/nx25/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/cpu/nx25/start.S')
-rw-r--r--arch/riscv/cpu/nx25/start.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/cpu/nx25/start.S b/arch/riscv/cpu/nx25/start.S
index 6a076639d3..cd0a66360d 100644
--- a/arch/riscv/cpu/nx25/start.S
+++ b/arch/riscv/cpu/nx25/start.S
@@ -45,6 +45,8 @@ trap_vector:
.global trap_entry
handle_reset:
+ li t0, CONFIG_SYS_SDRAM_BASE
+ SREG a2, 0(t0)
la t0, trap_entry
csrw mtvec, t0
csrwi mstatus, 0