Commit 94f592f0 authored by Zong Li's avatar Zong Li Committed by Palmer Dabbelt

RISC-V: Add the directive for alignment of stvec's value

The stvec's value must be 4 byte alignment by specification definition.
These directives avoid to stvec be set the non-alignment value.
Signed-off-by: default avatarZong Li <zong@andestech.com>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 62b01943
...@@ -94,6 +94,7 @@ relocate: ...@@ -94,6 +94,7 @@ relocate:
or a0, a0, a1 or a0, a0, a1
sfence.vma sfence.vma
csrw sptbr, a0 csrw sptbr, a0
.align 2
1: 1:
/* Set trap vector to spin forever to help debug */ /* Set trap vector to spin forever to help debug */
la a0, .Lsecondary_park la a0, .Lsecondary_park
...@@ -143,6 +144,7 @@ relocate: ...@@ -143,6 +144,7 @@ relocate:
tail smp_callin tail smp_callin
#endif #endif
.align 2
.Lsecondary_park: .Lsecondary_park:
/* We lack SMP support or have too many harts, so park this hart */ /* We lack SMP support or have too many harts, so park this hart */
wfi wfi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment