FATAL error running MRE blinking test fix #1137

This commit is contained in:
rusEfi 2020-02-09 21:16:31 -05:00
parent e7d8d9581f
commit cfd7397e46
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.*/
syssts_t sts = chSysGetStatusAndLockX();
chSemSignalI(&tle8888_wake);
if (!port_is_isr_context()) {
/**
* chSemSignalI above requires rescheduling
* interrupt handlers have implicit rescheduling
*/
chDbgCheckClassS();
}
/* Leaving the critical zone.*/
chSysRestoreStatusX(sts);