riscv: Align _isr_wrapper to 64 bytes for CLIC

The CLIC requires that mtvec.base is aligned to 64 bytes.
_isr_wrapper is used as mtvec.base, so align it to 64 bytes.

Signed-off-by: Piotr Wojnarowski <pwojnarowski@antmicro.com>
This commit is contained in:
Piotr Wojnarowski 2024-05-22 22:04:55 +02:00 committed by Henrik Brix Andersen
commit 0f3fe4daab
2 changed files with 2 additions and 1 deletions

View file

@ -33,7 +33,7 @@ SECTION_FUNC(vectors, __start)
*
* CLIC vectored mode uses mtvec exclusively for exception handling and
* mtvec.base must be aligned to 64 bytes (this is done using
* CONFIG_ARCH_SW_ISR_TABLE_ALIGN)
* CONFIG_RISCV_TRAP_HANDLER_ALIGNMENT)
*/
la t0, _isr_wrapper
addi t0, t0, 0x03 /* Enable CLIC vectored mode by setting LSB */