From f327f603076b6fb5402d650d64c67e0a7b81c74f Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 16 Jan 2016 17:32:44 +0000 Subject: [PATCH] Made debug variables initialization explicit. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8775 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/src/chsys.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os/rt/src/chsys.c b/os/rt/src/chsys.c index 7e0a6c806..fd47664a5 100644 --- a/os/rt/src/chsys.c +++ b/os/rt/src/chsys.c @@ -98,6 +98,10 @@ void chSysInit(void) { port_init(); _scheduler_init(); _vt_init(); +#if CH_DBG_SYSTEM_STATE_CHECK == TRUE + ch.dbg.isr_cnt = (cnt_t)0; + ch.dbg.lock_cnt = (cnt_t)0; +#endif #if CH_CFG_USE_TM == TRUE _tm_init(); #endif