mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-13 12:26:01 +01:00
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." Series-to: Rick Chen <rick@andestech.com> Series-to: Leo <ycliang@andestech.com> Series-cc: u-boot@lists.denx.de Reported-by: Madushan Nishantha <jlmadushan@gmail.com> Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
parent
cbba1b7766
commit
d38cb6f660
@ -26,7 +26,7 @@
|
||||
.text
|
||||
|
||||
/* trap entry */
|
||||
.align 2
|
||||
.align 6
|
||||
.global trap_entry
|
||||
trap_entry:
|
||||
addi sp, sp, -32 * REGBYTES
|
||||
|
Loading…
x
Reference in New Issue
Block a user