From 1422b47cc4e0a979ff02e9d8fb1bb0005f0ebbb9 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 12 Mar 2008 11:24:24 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@225 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chsem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/chsem.c') 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); -- cgit v1.2.3