summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/taskmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/taskmp.c')
-rw-r--r--cpukit/rtems/src/taskmp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/rtems/src/taskmp.c b/cpukit/rtems/src/taskmp.c
index d59db2e313..e3742c528d 100644
--- a/cpukit/rtems/src/taskmp.c
+++ b/cpukit/rtems/src/taskmp.c
@@ -20,6 +20,7 @@
#include <rtems/rtems/tasksimpl.h>
#include <rtems/rtems/optionsimpl.h>
+#include <rtems/rtems/statusimpl.h>
#include <rtems/score/statesimpl.h>
#include <rtems/score/threadimpl.h>
#include <rtems/score/threadqimpl.h>
@@ -101,18 +102,20 @@ static rtems_status_code _RTEMS_tasks_MP_Send_request_packet(
RTEMS_tasks_MP_Remote_operations operation
)
{
+ Status_Control status;
+
the_packet->Prefix.the_class = MP_PACKET_TASKS;
the_packet->Prefix.length = sizeof( *the_packet );
the_packet->Prefix.to_convert = sizeof( *the_packet );
the_packet->Prefix.id = id;
the_packet->operation = operation;
- return _MPCI_Send_request_packet(
+ status = _MPCI_Send_request_packet(
_Objects_Get_node( id ),
&the_packet->Prefix,
- STATES_READY, /* Not used */
- RTEMS_TIMEOUT
+ STATES_READY /* Not used */
);
+ return _Status_Get( status );
}
rtems_status_code _RTEMS_tasks_MP_Set_priority(