aboutsummaryrefslogtreecommitdiffstats
path: root/src/chsem.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-03-12 11:24:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-03-12 11:24:24 +0000
commit1422b47cc4e0a979ff02e9d8fb1bb0005f0ebbb9 (patch)
tree6038803fa0fb48739a9ade81d45f5d774a1b9931 /src/chsem.c
parent7500baf6cd6457ce77b5a474031f35bd5b30fb6a (diff)
downloadChibiOS-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.c6
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);