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 --- c/src/exec/rtems/src/event.c | 20 ++++++++++++++++++++ c/src/exec/rtems/src/sem.c | 9 +++++++++ 2 files changed, 29 insertions(+) (limited to 'c/src/exec/rtems') diff --git a/c/src/exec/rtems/src/event.c b/c/src/exec/rtems/src/event.c index 141c5411cf..ab00bc757e 100644 --- a/c/src/exec/rtems/src/event.c +++ b/c/src/exec/rtems/src/event.c @@ -22,6 +22,26 @@ #include #include +/*PAGE + * + * _Event_Manager_initialization + * + * DESCRIPTION: + * + * This routine performs the initialization necessary for this manager. + */ + +void _Event_Manager_initialization( void ) +{ + _Event_Sync_state = EVENT_SYNC_SYNCHRONIZED; + + /* + * Register the MP Process Packet routine. + */ + + _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); +} + /*PAGE * * rtems_event_send diff --git a/c/src/exec/rtems/src/sem.c b/c/src/exec/rtems/src/sem.c index 2995e8c638..004176f4fb 100644 --- a/c/src/exec/rtems/src/sem.c +++ b/c/src/exec/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