git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8349 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2015-10-08 13:03:17 +00:00
parent 12b6055eca
commit f6f26fc55c
2 changed files with 5 additions and 1 deletions

View File

@ -366,7 +366,7 @@ static inline void chSysUnlock(void) {
the ready list.*/ the ready list.*/
chDbgAssert((ch.rlist.r_queue.p_next == (thread_t *)&ch.rlist.r_queue) || chDbgAssert((ch.rlist.r_queue.p_next == (thread_t *)&ch.rlist.r_queue) ||
(ch.rlist.r_current->p_prio >= ch.rlist.r_queue.p_next->p_prio), (ch.rlist.r_current->p_prio >= ch.rlist.r_queue.p_next->p_prio),
"priority violation, missing reschedule"); "priority order violation");
port_unlock(); port_unlock();
} }

View File

@ -368,6 +368,10 @@ void chSchWakeupS(thread_t *ntp, msg_t msg) {
chDbgCheckClassS(); chDbgCheckClassS();
chDbgAssert((ch.rlist.r_queue.p_next == (thread_t *)&ch.rlist.r_queue) ||
(ch.rlist.r_current->p_prio >= ch.rlist.r_queue.p_next->p_prio),
"priority order violation");
/* Storing the message to be retrieved by the target thread when it will /* Storing the message to be retrieved by the target thread when it will
restart execution.*/ restart execution.*/
ntp->p_u.rdymsg = msg; ntp->p_u.rdymsg = msg;