diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-12-29 09:59:18 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-12-29 09:59:18 +0000 |
commit | 3ecd613b00e7364c09f6d8f67ffe21bd0e21b5e6 (patch) | |
tree | 510f450ca75bb80ccec88d08b68d91777900af4c /os | |
parent | 976bc3e3fccaa4f793ebec1ab79089e7d1534310 (diff) | |
download | ChibiOS-3ecd613b00e7364c09f6d8f67ffe21bd0e21b5e6.tar.gz ChibiOS-3ecd613b00e7364c09f6d8f67ffe21bd0e21b5e6.tar.bz2 ChibiOS-3ecd613b00e7364c09f6d8f67ffe21bd0e21b5e6.zip |
Fixed a bug in Nil chSemSignalI() and a similar function in its OSAL.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6581 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r-- | os/nil/osal/osal.c | 1 | ||||
-rw-r--r-- | os/nil/src/nil.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/os/nil/osal/osal.c b/os/nil/osal/osal.c index 564ee369d..d2927bc12 100644 --- a/os/nil/osal/osal.c +++ b/os/nil/osal/osal.c @@ -68,6 +68,7 @@ void osalThreadDequeueNextI(threads_queue_t *tqp, msg_t msg) { while (true) {
/* Is this thread waiting on this semaphore?*/
if (tr->u1.semp == sp) {
+ sp->cnt++;
chDbgAssert(NIL_THD_IS_WTSEM(tr), "not waiting");
diff --git a/os/nil/src/nil.c b/os/nil/src/nil.c index 9141129cb..bafcb63cd 100644 --- a/os/nil/src/nil.c +++ b/os/nil/src/nil.c @@ -566,6 +566,7 @@ void chSemSignalI(semaphore_t *sp) { while (true) {
/* Is this thread waiting on this semaphore?*/
if (tr->u1.semp == sp) {
+ sp->cnt++;
chDbgAssert(NIL_THD_IS_WTSEM(tr), "not waiting");
|