From d38cb6f660335e62d06fc4aa9662395b35592001 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sun, 19 Feb 2023 13:22:09 -0600 Subject: [PATCH] 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 Series-to: Leo Series-cc: u-boot@lists.denx.de Reported-by: Madushan Nishantha Signed-off-by: Samuel Holland --- arch/riscv/cpu/mtrap.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/cpu/mtrap.S b/arch/riscv/cpu/mtrap.S index 6eb3ed1d5a8..5cad7b41ff7 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