FATAL error running MRE blinking test fix #1137

This commit is contained in:
rusEfi 2020-02-09 21:16:31 -05:00
parent a42dfa5e84
commit 551273a336
1 changed files with 7 additions and 0 deletions

View File

@ -315,6 +315,13 @@ static int tle8888_wake_driver(struct tle8888_priv *chip)
/* Entering a reentrant critical zone.*/ /* Entering a reentrant critical zone.*/
syssts_t sts = chSysGetStatusAndLockX(); syssts_t sts = chSysGetStatusAndLockX();
chSemSignalI(&tle8888_wake); chSemSignalI(&tle8888_wake);
if (!port_is_isr_context()) {
/**
* chSemSignalI above requires rescheduling
* interrupt handlers have implicit rescheduling
*/
chDbgCheckClassS();
}
/* Leaving the critical zone.*/ /* Leaving the critical zone.*/
chSysRestoreStatusX(sts); chSysRestoreStatusX(sts);