diff --git a/portable/GCC/RISC-V/portASM.S b/portable/GCC/RISC-V/portASM.S index 56e7b88eb..ca50d437e 100644 --- a/portable/GCC/RISC-V/portASM.S +++ b/portable/GCC/RISC-V/portASM.S @@ -320,6 +320,7 @@ exit_without_context_switch: /*-----------------------------------------------------------*/ .section .text.freertos_risc_v_trap_handler +.align 8 freertos_risc_v_trap_handler: portcontextSAVE_CONTEXT_INTERNAL