diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-22 08:52:50 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-29 07:26:43 +0200 |
commit | 97bbf028e63447091a56a4be69134fbff1adece6 (patch) | |
tree | ae60634e413f1dc5149c6cd0188623e591be8ea3 /cpukit/libmisc/monitor/mon-sema.c | |
parent | score: Remove Thread_queue_Queue::operations field (diff) | |
download | rtems-97bbf028e63447091a56a4be69134fbff1adece6.tar.bz2 |
score: Use constant for maximum count of CORE sema
Diffstat (limited to 'cpukit/libmisc/monitor/mon-sema.c')
-rw-r--r-- | cpukit/libmisc/monitor/mon-sema.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/libmisc/monitor/mon-sema.c b/cpukit/libmisc/monitor/mon-sema.c index f7e35edd29..5add7cf06f 100644 --- a/cpukit/libmisc/monitor/mon-sema.c +++ b/cpukit/libmisc/monitor/mon-sema.c @@ -28,11 +28,8 @@ rtems_monitor_sema_canonical( if (_Attributes_Is_counting_semaphore(canonical_sema->attribute)) { /* we have a counting semaphore */ - canonical_sema->cur_count = - rtems_sema->Core_control.semaphore.count; - - canonical_sema->max_count = - rtems_sema->Core_control.semaphore.Attributes.maximum_count; + canonical_sema->cur_count = rtems_sema->Core_control.semaphore.count; + canonical_sema->max_count = UINT32_MAX; } else { /* we have a binary semaphore (mutex) */ |