diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-03-06 09:08:30 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-03-06 09:08:30 +0000 |
commit | 755c42b99afb7f68428bf43bd31b3ce407cc8f13 (patch) | |
tree | d152f65beb31f29b51b68942498f5501631a2de8 /os/kernel | |
parent | f19cc0941708d7e000efeb8caf05e40a86d712b4 (diff) | |
download | ChibiOS-755c42b99afb7f68428bf43bd31b3ce407cc8f13.tar.gz ChibiOS-755c42b99afb7f68428bf43bd31b3ce407cc8f13.tar.bz2 ChibiOS-755c42b99afb7f68428bf43bd31b3ce407cc8f13.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1718 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel')
-rw-r--r-- | os/kernel/src/chmsg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/os/kernel/src/chmsg.c b/os/kernel/src/chmsg.c index 5030ac809..1e89aa0a3 100644 --- a/os/kernel/src/chmsg.c +++ b/os/kernel/src/chmsg.c @@ -77,8 +77,11 @@ msg_t chMsgWait(void) { chSysLock();
if (!chMsgIsPendingI(currp))
chSchGoSleepS(THD_STATE_WTMSG);
-/* msg = chMsgGetI(currp);*/
+#if defined(CH_ARCHITECTURE_STM8)
msg = chMsgGetI((volatile Thread *)currp); /* Temporary hack.*/
+#else
+ msg = chMsgGetI(currp);
+#endif
chSysUnlock();
return msg;
}
|