diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-03-12 11:24:24 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-03-12 11:24:24 +0000 |
commit | 1422b47cc4e0a979ff02e9d8fb1bb0005f0ebbb9 (patch) | |
tree | 6038803fa0fb48739a9ade81d45f5d774a1b9931 /src/chsem.c | |
parent | 7500baf6cd6457ce77b5a474031f35bd5b30fb6a (diff) | |
download | ChibiOS-1422b47cc4e0a979ff02e9d8fb1bb0005f0ebbb9.tar.gz ChibiOS-1422b47cc4e0a979ff02e9d8fb1bb0005f0ebbb9.tar.bz2 ChibiOS-1422b47cc4e0a979ff02e9d8fb1bb0005f0ebbb9.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@225 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chsem.c')
-rw-r--r-- | src/chsem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chsem.c b/src/chsem.c index cbbac8909..6953fb846 100644 --- a/src/chsem.c +++ b/src/chsem.c @@ -72,7 +72,7 @@ void chSemResetI(Semaphore *sp, cnt_t n) { cnt = sp->s_cnt;
sp->s_cnt = n;
while (cnt++ < 0)
- chSchReadyI(fifo_remove(&sp->s_queue), RDY_RESET);
+ chSchReadyI(fifo_remove(&sp->s_queue))->p_rdymsg = RDY_RESET;
}
/**
@@ -175,7 +175,7 @@ void chSemSignal(Semaphore *sp) { void chSemSignalI(Semaphore *sp) {
if (sp->s_cnt++ < 0)
- chSchReadyI(fifo_remove(&sp->s_queue), RDY_OK);
+ chSchReadyI(fifo_remove(&sp->s_queue))->p_rdymsg = RDY_OK;
}
#ifdef CH_USE_SEMSW
@@ -191,7 +191,7 @@ void chSemSignalWait(Semaphore *sps, Semaphore *spw) { chSysLock();
if (sps->s_cnt++ < 0)
- chSchReadyI(fifo_remove(&sps->s_queue), RDY_OK);
+ chSchReadyI(fifo_remove(&sps->s_queue))->p_rdymsg = RDY_OK;
if (--spw->s_cnt < 0) {
fifo_insert(currp, &spw->s_queue);
|