summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-17 22:46:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-05-17 22:46:01 +0000
commitef22ab258403e2a259627fa91aa9b00b0c5ad307 (patch)
tree6fe5fe8afed34092b2b8430aa539f636ac434482
parentCleaned up some multiprocessing issues. (diff)
downloadrtems-ef22ab258403e2a259627fa91aa9b00b0c5ad307.tar.bz2
Moved an MP routine from msg.c to here.
-rw-r--r--c/src/exec/rtems/src/msgmp.c26
-rw-r--r--cpukit/rtems/src/msgmp.c26
2 files changed, 52 insertions, 0 deletions
diff --git a/c/src/exec/rtems/src/msgmp.c b/c/src/exec/rtems/src/msgmp.c
index 707aa94b44..26d56f0d59 100644
--- a/c/src/exec/rtems/src/msgmp.c
+++ b/c/src/exec/rtems/src/msgmp.c
@@ -476,4 +476,30 @@ Message_queue_MP_Packet *_Message_queue_MP_Get_packet ( void )
return ( (Message_queue_MP_Packet *) _MPCI_Get_packet() );
}
+
+/*PAGE
+ *
+ * _Message_queue_Core_message_queue_mp_support
+ *
+ * Input parameters:
+ * the_thread - the remote thread the message was submitted to
+ * id - id of the message queue
+ *
+ * Output parameters: NONE
+ */
+
+void _Message_queue_Core_message_queue_mp_support (
+ Thread_Control *the_thread,
+ Objects_Id id
+)
+{
+ the_thread->receive_packet->return_code = RTEMS_SUCCESSFUL;
+
+ _Message_queue_MP_Send_response_packet(
+ MESSAGE_QUEUE_MP_RECEIVE_RESPONSE,
+ id,
+ the_thread
+ );
+}
+
/* end of file */
diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c
index 707aa94b44..26d56f0d59 100644
--- a/cpukit/rtems/src/msgmp.c
+++ b/cpukit/rtems/src/msgmp.c
@@ -476,4 +476,30 @@ Message_queue_MP_Packet *_Message_queue_MP_Get_packet ( void )
return ( (Message_queue_MP_Packet *) _MPCI_Get_packet() );
}
+
+/*PAGE
+ *
+ * _Message_queue_Core_message_queue_mp_support
+ *
+ * Input parameters:
+ * the_thread - the remote thread the message was submitted to
+ * id - id of the message queue
+ *
+ * Output parameters: NONE
+ */
+
+void _Message_queue_Core_message_queue_mp_support (
+ Thread_Control *the_thread,
+ Objects_Id id
+)
+{
+ the_thread->receive_packet->return_code = RTEMS_SUCCESSFUL;
+
+ _Message_queue_MP_Send_response_packet(
+ MESSAGE_QUEUE_MP_RECEIVE_RESPONSE,
+ id,
+ the_thread
+ );
+}
+
/* end of file */