summaryrefslogtreecommitdiff
path: root/src/arch/riscv/trap_util.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/trap_util.S')
-rw-r--r--src/arch/riscv/trap_util.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/riscv/trap_util.S b/src/arch/riscv/trap_util.S
index 72a9ae1ced..8aba48b986 100644
--- a/src/arch/riscv/trap_util.S
+++ b/src/arch/riscv/trap_util.S
@@ -109,6 +109,7 @@
.text
.global trap_entry
+ .align 2 # four byte alignment, as required by mtvec
trap_entry:
csrw mscratch, sp