diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-20 21:39:56 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-30 16:16:21 +0200 |
commit | 2581a563f9182dc2debdba97f33feee6d797e53a (patch) | |
tree | 97883371771f9a2905d159d8e11c0b2e9da0408c /cpukit/score/src/mpci.c | |
parent | rtems: Simplify rtems_semaphore_delete() (diff) | |
download | rtems-2581a563f9182dc2debdba97f33feee6d797e53a.tar.bz2 |
score: Add semaphore variants
Diffstat (limited to 'cpukit/score/src/mpci.c')
-rw-r--r-- | cpukit/score/src/mpci.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index 8c61e23b0f..9eb169ba17 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -35,6 +35,8 @@ RTEMS_STATIC_ASSERT( MPCI_Internal_packet ); +#define MPCI_SEMAPHORE_TQ_OPERATIONS &_Thread_queue_Operations_FIFO + bool _System_state_Is_multiprocessing; rtems_multiprocessing_table *_Configuration_MP_table; @@ -119,7 +121,6 @@ static void _MPCI_Handler_initialization( void ) _CORE_semaphore_Initialize( &_MPCI_Semaphore, - CORE_SEMAPHORE_DISCIPLINES_FIFO, 0 /* initial_value */ ); } @@ -335,6 +336,7 @@ void _MPCI_Receive_server( _ISR_lock_ISR_disable( &queue_context.Lock_context ); _CORE_semaphore_Seize( &_MPCI_Semaphore, + MPCI_SEMAPHORE_TQ_OPERATIONS, executing, true, WATCHDOG_NO_TIMEOUT, @@ -373,7 +375,12 @@ void _MPCI_Announce ( void ) Thread_queue_Context queue_context; _ISR_lock_ISR_disable( &queue_context.Lock_context ); - (void) _CORE_semaphore_Surrender( &_MPCI_Semaphore, UINT32_MAX, &queue_context ); + (void) _CORE_semaphore_Surrender( + &_MPCI_Semaphore, + MPCI_SEMAPHORE_TQ_OPERATIONS, + UINT32_MAX, + &queue_context + ); } void _MPCI_Internal_packets_Send_process_packet ( |