summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/coresemimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-03-22 08:52:50 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-03-29 07:26:43 +0200
commit97bbf028e63447091a56a4be69134fbff1adece6 (patch)
treeae60634e413f1dc5149c6cd0188623e591be8ea3 /cpukit/score/include/rtems/score/coresemimpl.h
parentscore: Remove Thread_queue_Queue::operations field (diff)
downloadrtems-97bbf028e63447091a56a4be69134fbff1adece6.tar.bz2
score: Use constant for maximum count of CORE sema
Diffstat (limited to 'cpukit/score/include/rtems/score/coresemimpl.h')
-rw-r--r--cpukit/score/include/rtems/score/coresemimpl.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpukit/score/include/rtems/score/coresemimpl.h b/cpukit/score/include/rtems/score/coresemimpl.h
index 365345a219..c70e54f36c 100644
--- a/cpukit/score/include/rtems/score/coresemimpl.h
+++ b/cpukit/score/include/rtems/score/coresemimpl.h
@@ -87,13 +87,11 @@ typedef void ( *CORE_semaphore_API_mp_support_callout )(
*
* @param[in] the_semaphore is the semaphore to initialize
* @param[in] discipline the blocking discipline
- * @param[in] maximum_count the maximum count
* @param[in] initial_value is the initial count of the semaphore
*/
void _CORE_semaphore_Initialize(
CORE_semaphore_Control *the_semaphore,
CORE_semaphore_Disciplines discipline,
- uint32_t maximum_count,
uint32_t initial_value
);
@@ -158,7 +156,7 @@ RTEMS_INLINE_ROUTINE CORE_semaphore_Status _CORE_semaphore_Surrender(
_Thread_Dispatch_enable( _Per_CPU_Get() );
#endif
} else {
- if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
+ if ( the_semaphore->count < UINT32_MAX )
the_semaphore->count += 1;
else
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;