X-Git-Url: https://git.sur5r.net/?p=freertos;a=blobdiff_plain;f=FreeRTOS%2FSource%2Fportable%2FIAR%2FRISC-V%2FportASM.s;h=bcd58a878eff3a8d219375deabc6c68c3a082914;hp=c4082c7b3c49e6f07d8c47d5c5a576b9538602b0;hb=92f04df81b2bbeed4284668fc50e455731202555;hpb=e1bec754ec5a7501af5dd1de2a8c325d418680d6 diff --git a/FreeRTOS/Source/portable/IAR/RISC-V/portASM.s b/FreeRTOS/Source/portable/IAR/RISC-V/portASM.s index c4082c7b3..bcd58a878 100644 --- a/FreeRTOS/Source/portable/IAR/RISC-V/portASM.s +++ b/FreeRTOS/Source/portable/IAR/RISC-V/portASM.s @@ -99,12 +99,12 @@ at the top of this file. */ EXTERN pxCurrentTCB EXTERN ulPortTrapHandler EXTERN vTaskSwitchContext + EXTERN xTaskIncrementTick EXTERN Timer_IRQHandler EXTERN pullMachineTimerCompareRegister EXTERN pullNextTime EXTERN uxTimerIncrementsForOneTick /* size_t type so 32-bit on 32-bit core and 64-bits on 64-bit core. */ EXTERN xISRStackTop - EXTERN xTaskIncrementTick EXTERN portasmHANDLE_INTERRUPT /*-----------------------------------------------------------*/ @@ -231,11 +231,13 @@ test_if_environment_call: j processed_source is_exception: - ebreak - j is_exception + csrr t0, CSR_MCAUSE /* For viewing in the debugger only. */ + csrr t1, CSR_MEPC /* For viewing in the debugger only */ + csrr t2, CSR_MSTATUS + j is_exception /* No other exceptions handled yet. */ as_yet_unhandled: - ebreak + csrr t0, mcause /* For viewing in the debugger only. */ j as_yet_unhandled processed_source: