From debe9195ce5f25038c0f92aea5a79b886d098d40 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 19 Apr 1996 21:10:58 +0000 Subject: event.c: _Event_Manager_initialization no longer a static inline sem.c: modified to eliminate Purify warnings --- cpukit/rtems/src/sem.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpukit/rtems/src/sem.c') 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, -- cgit v1.2.3