diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-08-22 09:07:00 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-08-22 09:07:00 +0000 |
commit | d8366c2bf5359f7b65e612eb33379fed578c6d91 (patch) | |
tree | 920f0e20ac27e4207818fb1e0e280bda895e9ca1 /os/hal/osal/nil/osal.c | |
parent | 3caa603df42e9215259d6d2256da1c3911e7d8ae (diff) | |
download | ChibiOS-d8366c2bf5359f7b65e612eb33379fed578c6d91.tar.gz ChibiOS-d8366c2bf5359f7b65e612eb33379fed578c6d91.tar.bz2 ChibiOS-d8366c2bf5359f7b65e612eb33379fed578c6d91.zip |
Fixed bug #633 (tentative).
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8232 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/osal/nil/osal.c')
-rw-r--r-- | os/hal/osal/nil/osal.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/os/hal/osal/nil/osal.c b/os/hal/osal/nil/osal.c index 2c500f4b6..f935e6e8c 100644 --- a/os/hal/osal/nil/osal.c +++ b/os/hal/osal/nil/osal.c @@ -96,6 +96,10 @@ void osalThreadDequeueAllI(threads_queue_t *tqp, msg_t msg) { sp->cnt = (cnt_t)0;
tr = nil.threads;
while (cnt < (cnt_t)0) {
+
+ chDbgAssert(tr < &nil.threads[NIL_CFG_NUM_THREADS],
+ "pointer out of range");
+
/* Is this thread waiting on this semaphore?*/
if (tr->u1.semp == sp) {
@@ -105,9 +109,6 @@ void osalThreadDequeueAllI(threads_queue_t *tqp, msg_t msg) { (void) chSchReadyI(tr, msg);
}
tr++;
-
- chDbgAssert(tr < &nil.threads[NIL_CFG_NUM_THREADS],
- "pointer out of range");
}
}
|