]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: Align the trap handler to 64 bytes
authorSamuel Holland <samuel@sholland.org>
Tue, 31 Oct 2023 05:35:41 +0000 (00:35 -0500)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 2 Nov 2023 07:15:46 +0000 (15:15 +0800)
commit3b00fab616b1150da745bbb36f6644842a24624f
treeec370646297026107f4d3d5865648546945e7e05
parenta6a77e47343d0b511136b76da0c853304a3f1423
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>
arch/riscv/cpu/mtrap.S