summaryrefslogtreecommitdiffstats
path: root/c/src/exec/itron/src/tsnd_mbf.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-09 21:08:50 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-09 21:08:50 +0000
commit3bb9542cd66a2b4cd5c4f0186420385eaf03f2d9 (patch)
tree84ace604b634add077074e3dcc4a589a53b5379f /c/src/exec/itron/src/tsnd_mbf.c
parent2001-03-26 Zoltan Kocsi <zoltan@bendor.com.au> (diff)
downloadrtems-3bb9542cd66a2b4cd5c4f0186420385eaf03f2d9.tar.bz2
2001-08-09 Joel Sherrill <joel@OARcorp.com>
* c/src/exec/itron/src/snd_mbx.c, c/src/exec/itron/src/tsnd_mbf.c c/src/exec/posix/src/mqueuesendsupp.c, c/src/exec/rtems/src/msgqsubmit.c, c/src/exec/score/include/rtems/score/coremsg.h, c/src/exec/score/inline/rtems/score/coremsg.inl, c/src/exec/score/src/coremsgsubmit.c: Unblocking message queue operations should NOT use _Thread_Executing for return status since it is permissible to invoke message send operations from an ISR. This was reported by Suvrat Gupta <suvrat@utstar.com>.
Diffstat (limited to 'c/src/exec/itron/src/tsnd_mbf.c')
-rw-r--r--c/src/exec/itron/src/tsnd_mbf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/c/src/exec/itron/src/tsnd_mbf.c b/c/src/exec/itron/src/tsnd_mbf.c
index 0ed3b4f90e..5a4e4cb1b2 100644
--- a/c/src/exec/itron/src/tsnd_mbf.c
+++ b/c/src/exec/itron/src/tsnd_mbf.c
@@ -33,6 +33,7 @@ ER tsnd_mbf(
Objects_Locations location;
Watchdog_Interval interval;
boolean wait;
+ CORE_message_queue_Status msg_status;
if (msgsz <= 0 || !msg)
return E_PAR;
@@ -57,7 +58,7 @@ ER tsnd_mbf(
case OBJECTS_LOCAL:
/* XXX Submit needs to take into account blocking */
- _CORE_message_queue_Submit(
+ msg_status = _CORE_message_queue_Submit(
&the_message_buffer->message_queue,
msg,
msgsz,
@@ -69,7 +70,7 @@ ER tsnd_mbf(
);
_Thread_Enable_dispatch();
return _ITRON_Message_buffer_Translate_core_message_buffer_return_code(
- _Thread_Executing->Wait.return_code
+ msg_status
);
}