Fixed bug #559.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7775 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
825c04410c
commit
b980872318
|
@ -317,7 +317,8 @@ static inline void chSysUnlock(void) {
|
||||||
in a critical section not followed by a chSchResceduleS(), this means
|
in a critical section not followed by a chSchResceduleS(), this means
|
||||||
that the current thread has a lower priority than the next thread in
|
that the current thread has a lower priority than the next thread in
|
||||||
the ready list.*/
|
the ready list.*/
|
||||||
chDbgAssert(ch.rlist.r_current->p_prio >= ch.rlist.r_queue.p_next->p_prio,
|
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 violation, missing reschedule");
|
"priority violation, missing reschedule");
|
||||||
|
|
||||||
port_unlock();
|
port_unlock();
|
||||||
|
|
Loading…
Reference in New Issue