mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00: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." Reported-by: Madushan Nishantha <jlmadushan@gmail.com> Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
This commit is contained in:
parent
a6a77e4734
commit
3b00fab616
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
||||||
.text
|
.text
|
||||||
|
|
||||||
/* trap entry */
|
/* trap entry */
|
||||||
.align 2
|
.align 6
|
||||||
.global trap_entry
|
.global trap_entry
|
||||||
trap_entry:
|
trap_entry:
|
||||||
addi sp, sp, -32 * REGBYTES
|
addi sp, sp, -32 * REGBYTES
|
||||||
|
|
Loading…
Reference in a new issue