From 97e2729d1a3432b9792b82ce88ce6d804a104f7a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 23 Nov 1998 17:38:09 +0000 Subject: Added --disable-multiprocessing flag and modified a lot of files to make it work. --- c/src/exec/rtems/src/event.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'c/src/exec/rtems/src/event.c') diff --git a/c/src/exec/rtems/src/event.c b/c/src/exec/rtems/src/event.c index a780ba7cf7..36c345ca8c 100644 --- a/c/src/exec/rtems/src/event.c +++ b/c/src/exec/rtems/src/event.c @@ -39,7 +39,9 @@ void _Event_Manager_initialization( void ) * Register the MP Process Packet routine. */ +#if defined(RTEMS_MULTIPROCESSING) _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); +#endif } /*PAGE @@ -68,9 +70,8 @@ rtems_status_code rtems_event_send( the_thread = _Thread_Get( id, &location ); switch ( location ) { - case OBJECTS_ERROR: - return RTEMS_INVALID_ID; case OBJECTS_REMOTE: +#if defined(RTEMS_MULTIPROCESSING) return( _Event_MP_Send_request_packet( EVENT_MP_SEND_REQUEST, @@ -78,6 +79,9 @@ rtems_status_code rtems_event_send( event_in ) ); +#endif + case OBJECTS_ERROR: + return RTEMS_INVALID_ID; case OBJECTS_LOCAL: api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; _Event_sets_Post( event_in, &api->pending_events ); @@ -352,8 +356,8 @@ void _Event_Timeout( the_thread = _Thread_Get( id, &location ); switch ( location ) { - case OBJECTS_ERROR: case OBJECTS_REMOTE: /* impossible */ + case OBJECTS_ERROR: break; case OBJECTS_LOCAL: -- cgit v1.2.3