summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/sem.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-04-19 21:10:58 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-04-19 21:10:58 +0000
commitdebe9195ce5f25038c0f92aea5a79b886d098d40 (patch)
treea087fed6cddbfcfb6beeec25db632b5ea2023fcb /cpukit/rtems/src/sem.c
parent_Event_Manager_initialization no longer a static inline (diff)
downloadrtems-debe9195ce5f25038c0f92aea5a79b886d098d40.tar.bz2
event.c: _Event_Manager_initialization no longer a static inline
sem.c: modified to eliminate Purify warnings
Diffstat (limited to 'cpukit/rtems/src/sem.c')
-rw-r--r--cpukit/rtems/src/sem.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/rtems/src/sem.c b/cpukit/rtems/src/sem.c
index 2995e8c638..004176f4fb 100644
--- a/cpukit/rtems/src/sem.c
+++ b/cpukit/rtems/src/sem.c
@@ -170,6 +170,8 @@ rtems_status_code rtems_semaphore_create(
/* Add priority ceiling code here ????? */
+ the_mutex_attributes.priority_ceiling = priority_ceiling;
+
if ( count == 1 )
lock = CORE_MUTEX_UNLOCKED;
else
@@ -189,6 +191,13 @@ rtems_status_code rtems_semaphore_create(
else
the_semaphore_attributes.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
+ /*
+ * The following are just to make Purify happy.
+ */
+
+ the_mutex_attributes.allow_nesting = TRUE;
+ the_mutex_attributes.priority_ceiling = PRIORITY_MINIMUM;
+
_CORE_semaphore_Initialize(
&the_semaphore->Core_control.semaphore,
OBJECTS_RTEMS_SEMAPHORES,