aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2023-10-31 00:35:41 -0500
committerLeo Yu-Chi Liang <ycliang@andestech.com>2023-11-02 15:15:46 +0800
commit3b00fab616b1150da745bbb36f6644842a24624f (patch)
treeec370646297026107f4d3d5865648546945e7e05 /arch
parenta6a77e47343d0b511136b76da0c853304a3f1423 (diff)
downloadu-boot-3b00fab616b1150da745bbb36f6644842a24624f.zip
u-boot-3b00fab616b1150da745bbb36f6644842a24624f.tar.gz
u-boot-3b00fab616b1150da745bbb36f6644842a24624f.tar.bz2
riscv: Align the trap handler to 64 bytes
This is required on CPUs which always operate in CLIC mode, such as the T-HEAD E906 and E907. Per the CLIC specification: "In this mode, the trap vector base address held in mtvec is constrained to be aligned on a 64-byte or larger power-of-two boundary." Reported-by: Madushan Nishantha <jlmadushan@gmail.com> Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/cpu/mtrap.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/cpu/mtrap.S b/arch/riscv/cpu/mtrap.S
index 6eb3ed1..5cad7b4 100644
--- a/arch/riscv/cpu/mtrap.S
+++ b/arch/riscv/cpu/mtrap.S
@@ -26,7 +26,7 @@
.text
/* trap entry */
- .align 2
+ .align 6
.global trap_entry
trap_entry:
addi sp, sp, -32 * REGBYTES