auto-sync
This commit is contained in:
parent
15054d74db
commit
2622e880c0
|
@ -154,13 +154,16 @@ void dbg_check_unlock_from_isr(void) {
|
||||||
dbg_leave_lock();
|
dbg_leave_lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void firmwareError(const char *fmt, ...);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Guard code for @p CH_IRQ_PROLOGUE().
|
* @brief Guard code for @p CH_IRQ_PROLOGUE().
|
||||||
*
|
*
|
||||||
* @notapi
|
* @notapi
|
||||||
*/
|
*/
|
||||||
void dbg_check_enter_isr(void) {
|
void dbg_check_enter_isr(void) {
|
||||||
|
if (dbg_isr_cnt > 2)
|
||||||
|
firmwareError("nesting3");
|
||||||
port_lock_from_isr();
|
port_lock_from_isr();
|
||||||
if ((dbg_isr_cnt < 0) || (dbg_lock_cnt != 0))
|
if ((dbg_isr_cnt < 0) || (dbg_lock_cnt != 0))
|
||||||
chDbgPanic("SV#8");
|
chDbgPanic("SV#8");
|
||||||
|
|
Loading…
Reference in New Issue