diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-20 20:45:56 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-20 20:45:56 +0000 |
commit | 85016e2a2622a64719e8baa58dd493b6b99aa793 (patch) | |
tree | dd916ca036a20b1d5137f324f536ecb3eae8ab2d /os/kernel/src/chmsg.c | |
parent | 14005a2ffefe28adb2ce2cfdad24be782090c089 (diff) | |
download | ChibiOS-85016e2a2622a64719e8baa58dd493b6b99aa793.tar.gz ChibiOS-85016e2a2622a64719e8baa58dd493b6b99aa793.tar.bz2 ChibiOS-85016e2a2622a64719e8baa58dd493b6b99aa793.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1534 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chmsg.c')
-rw-r--r-- | os/kernel/src/chmsg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/kernel/src/chmsg.c b/os/kernel/src/chmsg.c index 577e82693..2f5a7a127 100644 --- a/os/kernel/src/chmsg.c +++ b/os/kernel/src/chmsg.c @@ -48,9 +48,9 @@ msg_t chMsgSend(Thread *tp, msg_t msg) { chDbgCheck(tp != NULL, "chMsgSend");
chSysLock();
- msg_insert(currp, &tp->p_msgqueue);
currp->p_msg = msg;
- currp->p_u.wtobjp = tp;
+ currp->p_u.wtobjp = &tp->p_msgqueue;
+ msg_insert(currp, &tp->p_msgqueue);
if (tp->p_state == THD_STATE_WTMSG)
chSchReadyI(tp);
chSchGoSleepS(THD_STATE_SNDMSG);
|