From cf204e72ea5fd6e4be8b3295cb148fde5fdd47d2 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 16 Feb 2016 10:07:00 +0000 Subject: Tree reorganization. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8900 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/src/chmsg.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'os/rt/src/chmsg.c') diff --git a/os/rt/src/chmsg.c b/os/rt/src/chmsg.c index a4a646722..173473955 100644 --- a/os/rt/src/chmsg.c +++ b/os/rt/src/chmsg.c @@ -90,13 +90,13 @@ msg_t chMsgSend(thread_t *tp, msg_t msg) { chDbgCheck(tp != NULL); chSysLock(); - ctp->p_u.sentmsg = msg; - msg_insert(ctp, &tp->p_msgqueue); - if (tp->p_state == CH_STATE_WTMSG) { + ctp->u.sentmsg = msg; + msg_insert(ctp, &tp->msgqueue); + if (tp->state == CH_STATE_WTMSG) { (void) chSchReadyI(tp); } chSchGoSleepS(CH_STATE_SNDMSGQ); - msg = ctp->p_u.rdymsg; + msg = ctp->u.rdymsg; chSysUnlock(); return msg; @@ -123,8 +123,8 @@ thread_t *chMsgWait(void) { if (!chMsgIsPendingI(currp)) { chSchGoSleepS(CH_STATE_WTMSG); } - tp = queue_fifo_remove(&currp->p_msgqueue); - tp->p_state = CH_STATE_SNDMSG; + tp = queue_fifo_remove(&currp->msgqueue); + tp->state = CH_STATE_SNDMSG; chSysUnlock(); return tp; @@ -143,7 +143,7 @@ thread_t *chMsgWait(void) { void chMsgRelease(thread_t *tp, msg_t msg) { chSysLock(); - chDbgAssert(tp->p_state == CH_STATE_SNDMSG, "invalid state"); + chDbgAssert(tp->state == CH_STATE_SNDMSG, "invalid state"); chMsgReleaseS(tp, msg); chSysUnlock(); } -- cgit v1.2.3