From a2d0f39a2c823f8b3d9f5c2fbce3bad9de56cc94 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 17 May 1999 22:56:13 +0000 Subject: Moved some MP routines to semmp.c. --- cpukit/rtems/src/semmp.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'cpukit/rtems/src/semmp.c') diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c index 01efdfca4e..7b87720c87 100644 --- a/cpukit/rtems/src/semmp.c +++ b/cpukit/rtems/src/semmp.c @@ -305,4 +305,58 @@ Semaphore_MP_Packet *_Semaphore_MP_Get_packet ( void ) return ( (Semaphore_MP_Packet *) _MPCI_Get_packet() ); } +/*PAGE + * + * _Semaphore_Core_mutex_mp_support + * + * Input parameters: + * the_thread - the remote thread the semaphore was surrendered to + * id - id of the surrendered semaphore + * + * Output parameters: NONE + */ + +#if defined(RTEMS_MULTIPROCESSING) +void _Semaphore_Core_mutex_mp_support ( + Thread_Control *the_thread, + Objects_Id id +) +{ + the_thread->receive_packet->return_code = RTEMS_SUCCESSFUL; + + _Semaphore_MP_Send_response_packet( + SEMAPHORE_MP_OBTAIN_RESPONSE, + id, + the_thread + ); +} +#endif + + +/*PAGE + * + * _Semaphore_Core_semaphore_mp_support + * + * Input parameters: + * the_thread - the remote thread the semaphore was surrendered to + * id - id of the surrendered semaphore + * + * Output parameters: NONE + */ + +#if defined(RTEMS_MULTIPROCESSING) +void _Semaphore_Core_semaphore_mp_support ( + Thread_Control *the_thread, + Objects_Id id +) +{ + the_thread->receive_packet->return_code = RTEMS_SUCCESSFUL; + + _Semaphore_MP_Send_response_packet( + SEMAPHORE_MP_OBTAIN_RESPONSE, + id, + the_thread + ); +} +#endif /* end of file */ -- cgit v1.2.3