aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/RC/STM8/chcore.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/ports/RC/STM8/chcore.h')
-rw-r--r--os/ports/RC/STM8/chcore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/ports/RC/STM8/chcore.h b/os/ports/RC/STM8/chcore.h
index e889cf1d0..c8c2ebb16 100644
--- a/os/ports/RC/STM8/chcore.h
+++ b/os/ports/RC/STM8/chcore.h
@@ -206,8 +206,10 @@ struct stm8_startctx {
* enabled to invoke system APIs.
*/
#define PORT_IRQ_EPILOGUE() { \
+ dbg_check_lock(); \
if (chSchIsPreemptionRequired()) \
chSchDoReschedule(); \
+ dbg_check_unlock(); \
}
/**