summaryrefslogtreecommitdiffstats
path: root/cpukit
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
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')
-rw-r--r--cpukit/rtems/src/event.c20
-rw-r--r--cpukit/rtems/src/sem.c9
2 files changed, 29 insertions, 0 deletions
diff --git a/cpukit/rtems/src/event.c b/cpukit/rtems/src/event.c
index 141c5411cf..ab00bc757e 100644
--- a/cpukit/rtems/src/event.c
+++ b/cpukit/rtems/src/event.c
@@ -24,6 +24,26 @@
/*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
*
* This directive allows a thread send an event set to another thread.
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,