aboutsummaryrefslogtreecommitdiff
path: root/src/arch/riscv/bootblock.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/bootblock.S')
-rw-r--r--src/arch/riscv/bootblock.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/riscv/bootblock.S b/src/arch/riscv/bootblock.S
index 07d68ab851..5092ec0405 100644
--- a/src/arch/riscv/bootblock.S
+++ b/src/arch/riscv/bootblock.S
@@ -38,10 +38,10 @@ _start:
sd t0, 0(t1)
la t0, exception_handler
- csrw stvec, t0
+ csrw mtvec, t0
# clear any pending interrupts
- csrwi sip, 0
+ csrwi mip, 0
# set up the mstatus register for VM
call mstatus_init