aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chmsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/kernel/src/chmsg.c')
-rw-r--r--os/kernel/src/chmsg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/os/kernel/src/chmsg.c b/os/kernel/src/chmsg.c
index 411c5fed3..5030ac809 100644
--- a/os/kernel/src/chmsg.c
+++ b/os/kernel/src/chmsg.c
@@ -77,7 +77,8 @@ msg_t chMsgWait(void) {
chSysLock();
if (!chMsgIsPendingI(currp))
chSchGoSleepS(THD_STATE_WTMSG);
- msg = chMsgGetI(currp);
+/* msg = chMsgGetI(currp);*/
+ msg = chMsgGetI((volatile Thread *)currp); /* Temporary hack.*/
chSysUnlock();
return msg;
}