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:
parent
adfe3129d3
commit
0f3fe4daab
2 changed files with 2 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue