diff options
-rw-r--r-- | os/various/segger_bindings/SYSTEMVIEW/SEGGER_SYSVIEW_ChibiOS.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/os/various/segger_bindings/SYSTEMVIEW/SEGGER_SYSVIEW_ChibiOS.h b/os/various/segger_bindings/SYSTEMVIEW/SEGGER_SYSVIEW_ChibiOS.h index c3e0384..be73a4f 100644 --- a/os/various/segger_bindings/SYSTEMVIEW/SEGGER_SYSVIEW_ChibiOS.h +++ b/os/various/segger_bindings/SYSTEMVIEW/SEGGER_SYSVIEW_ChibiOS.h @@ -266,11 +266,14 @@ void SYSVIEW_ChibiOS_Start(U32 SysFreq, U32 CPUFreq, const char *isr_description #define CH_CFG_IRQ_EPILOGUE_HOOK() { \ _CH_CFG_IRQ_EPILOGUE_HOOK(); \ + port_lock_from_isr(); \ + _dbg_enter_lock(); \ if (_isr_is_tail() && chSchIsPreemptionRequired()) { \ SEGGER_SYSVIEW_RecordExitISRToScheduler(); \ } else { \ SEGGER_SYSVIEW_RecordExitISR(); \ } \ + _dbg_leave_lock(); \ } #define CH_CFG_SYSTEM_HALT_HOOK(reason) { \ |