diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-18 06:05:35 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-18 06:05:35 +0000 |
commit | 50f32b11653429546d7b8ff2693b5232b885e201 (patch) | |
tree | a8821a7e3025ef47082cc21ccbb56551382cdc3f /cpukit/rtems/src | |
parent | Remove stray white spaces. (diff) | |
download | rtems-50f32b11653429546d7b8ff2693b5232b885e201.tar.bz2 |
Remove stray white spaces.
Diffstat (limited to 'cpukit/rtems/src')
40 files changed, 109 insertions, 109 deletions
diff --git a/cpukit/rtems/src/dpmemcreate.c b/cpukit/rtems/src/dpmemcreate.c index 1cab9bb606..30c8233aa3 100644 --- a/cpukit/rtems/src/dpmemcreate.c +++ b/cpukit/rtems/src/dpmemcreate.c @@ -69,7 +69,7 @@ rtems_status_code rtems_port_create( the_port->external_base = external_start; the_port->length = length - 1; - _Objects_Open( + _Objects_Open( &_Dual_ported_memory_Information, &the_port->Object, (Objects_Name) name diff --git a/cpukit/rtems/src/event.c b/cpukit/rtems/src/event.c index 74238a4fe5..0e339c6fcf 100644 --- a/cpukit/rtems/src/event.c +++ b/cpukit/rtems/src/event.c @@ -29,15 +29,15 @@ * * 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. */ - + #if defined(RTEMS_MULTIPROCESSING) _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet ); #endif diff --git a/cpukit/rtems/src/eventsurrender.c b/cpukit/rtems/src/eventsurrender.c index 0af3a3b0c9..72ba56e9cb 100644 --- a/cpukit/rtems/src/eventsurrender.c +++ b/cpukit/rtems/src/eventsurrender.c @@ -64,7 +64,7 @@ void _Event_Surrender( if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); - (rtems_event_set) the_thread->Wait.count = 0; + (rtems_event_set) the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _ISR_Flash( level ); @@ -87,14 +87,14 @@ void _Event_Surrender( case EVENT_SYNC_SYNCHRONIZED: case EVENT_SYNC_SATISFIED: break; - + case EVENT_SYNC_NOTHING_HAPPENED: case EVENT_SYNC_TIMEOUT: if ( !_Thread_Is_executing( the_thread ) ) break; if ( seized_events == event_condition || _Options_Is_any(option_set) ) { - api->pending_events = + api->pending_events = _Event_sets_Clear( pending_events,seized_events ); *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; _Event_Sync_state = EVENT_SYNC_SATISFIED; diff --git a/cpukit/rtems/src/eventtimeout.c b/cpukit/rtems/src/eventtimeout.c index 03b6430fb4..292324d4b9 100644 --- a/cpukit/rtems/src/eventtimeout.c +++ b/cpukit/rtems/src/eventtimeout.c @@ -49,12 +49,12 @@ void _Event_Timeout( case OBJECTS_ERROR: break; case OBJECTS_LOCAL: - + /* * If the event manager is not synchronized, then it is either * "nothing happened", "timeout", or "satisfied". If the_thread * is the executing thread, then it is in the process of blocking - * and it is the thread which is responsible for the synchronization + * and it is the thread which is responsible for the synchronization * process. * * If it is not satisfied, then it is "nothing happened" and @@ -65,7 +65,7 @@ void _Event_Timeout( _ISR_Disable( level ); if ( the_thread->Wait.count ) { /* verify thread is waiting */ the_thread->Wait.count = 0; - if ( _Event_Sync_state != EVENT_SYNC_SYNCHRONIZED && + if ( _Event_Sync_state != EVENT_SYNC_SYNCHRONIZED && _Thread_Is_executing( the_thread ) ) { if ( _Event_Sync_state != EVENT_SYNC_SATISFIED ) { _Event_Sync_state = EVENT_SYNC_TIMEOUT; @@ -79,7 +79,7 @@ void _Event_Timeout( } else { _ISR_Enable( level ); - } + } _Thread_Unnest_dispatch(); break; diff --git a/cpukit/rtems/src/msgmp.c b/cpukit/rtems/src/msgmp.c index aa26ddb5fe..f9c2ba032f 100644 --- a/cpukit/rtems/src/msgmp.c +++ b/cpukit/rtems/src/msgmp.c @@ -132,7 +132,7 @@ rtems_status_code _Message_queue_MP_Send_request_packet ( /* * Copy the data into place if needed */ - + if (buffer) { the_packet->Buffer.size = *size_p; _CORE_message_queue_Copy_buffer( @@ -166,7 +166,7 @@ rtems_status_code _Message_queue_MP_Send_request_packet ( _Thread_Executing->Wait.return_argument = (uint32_t *)buffer; _Thread_Executing->Wait.return_argument_1 = size_p; - + return (rtems_status_code) _MPCI_Send_request_packet( rtems_get_node(message_queue_id), &the_packet->Prefix, @@ -226,7 +226,7 @@ void _Message_queue_MP_Send_response_packet ( if (operation == MESSAGE_QUEUE_MP_RECEIVE_RESPONSE) the_packet->Prefix.length += the_packet->size; - + _MPCI_Send_response_packet( rtems_get_node( the_packet->Prefix.source_tid ), &the_packet->Prefix @@ -318,7 +318,7 @@ void _Message_queue_MP_Process_packet ( the_thread = _MPCI_Process_response( the_packet_prefix ); if (the_packet->Prefix.return_code == RTEMS_SUCCESSFUL) { - *(uint32_t *)the_thread->Wait.return_argument_1 = + *(uint32_t *)the_thread->Wait.return_argument_1 = the_packet->size; _CORE_message_queue_Copy_buffer( diff --git a/cpukit/rtems/src/msgqallocate.c b/cpukit/rtems/src/msgqallocate.c index 6ec1da4029..98024917ba 100644 --- a/cpukit/rtems/src/msgqallocate.c +++ b/cpukit/rtems/src/msgqallocate.c @@ -35,7 +35,7 @@ * _Message_queue_Allocate * * Allocate a message queue and the space for its messages - * + * * Input parameters: * the_message_queue - the message queue to allocate message buffers * count - maximum message and reserved buffer count @@ -50,7 +50,7 @@ Message_queue_Control *_Message_queue_Allocate ( uint32_t max_message_size ) { - return + return (Message_queue_Control *)_Objects_Allocate(&_Message_queue_Information); } diff --git a/cpukit/rtems/src/msgqbroadcast.c b/cpukit/rtems/src/msgqbroadcast.c index 57f238bb4d..8eb4bef5ea 100644 --- a/cpukit/rtems/src/msgqbroadcast.c +++ b/cpukit/rtems/src/msgqbroadcast.c @@ -93,9 +93,9 @@ rtems_status_code rtems_message_queue_broadcast( #endif count ); - + _Thread_Enable_dispatch(); - return + return _Message_queue_Translate_core_message_queue_return_code( core_status ); } diff --git a/cpukit/rtems/src/msgqcreate.c b/cpukit/rtems/src/msgqcreate.c index 4f0d6c45ab..4b4aa02554 100644 --- a/cpukit/rtems/src/msgqcreate.c +++ b/cpukit/rtems/src/msgqcreate.c @@ -68,7 +68,7 @@ rtems_status_code rtems_message_queue_create( return RTEMS_INVALID_NAME; #if defined(RTEMS_MULTIPROCESSING) - if ( (is_global = _Attributes_Is_global( attribute_set ) ) && + if ( (is_global = _Attributes_Is_global( attribute_set ) ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif @@ -86,12 +86,12 @@ rtems_status_code rtems_message_queue_create( * It seems reasonable to create a que with a large max size, * and then just send smaller msgs from remote (or all) nodes. */ - + if ( is_global && (_MPCI_table->maximum_packet_size < max_message_size) ) return RTEMS_INVALID_SIZE; #endif #endif - + _Thread_Disable_dispatch(); /* protects object pointer */ the_message_queue = _Message_queue_Allocate( count, max_message_size ); diff --git a/cpukit/rtems/src/msgqident.c b/cpukit/rtems/src/msgqident.c index 903ada15e6..a3778d63ad 100644 --- a/cpukit/rtems/src/msgqident.c +++ b/cpukit/rtems/src/msgqident.c @@ -60,7 +60,7 @@ rtems_status_code rtems_message_queue_ident( &_Message_queue_Information, (Objects_Name) name, node, - id + id ); return _Status_Object_name_errors_to_status[ status ]; diff --git a/cpukit/rtems/src/msgqreceive.c b/cpukit/rtems/src/msgqreceive.c index 9b9a01129a..0724127f4a 100644 --- a/cpukit/rtems/src/msgqreceive.c +++ b/cpukit/rtems/src/msgqreceive.c @@ -60,7 +60,7 @@ rtems_status_code rtems_message_queue_receive( register Message_queue_Control *the_message_queue; Objects_Locations location; boolean wait; - + the_message_queue = _Message_queue_Get( id, &location ); switch ( location ) { @@ -84,7 +84,7 @@ rtems_status_code rtems_message_queue_receive( wait = FALSE; else wait = TRUE; - + _CORE_message_queue_Seize( &the_message_queue->message_queue, the_message_queue->Object.id, diff --git a/cpukit/rtems/src/msgqsubmit.c b/cpukit/rtems/src/msgqsubmit.c index 1ff281b197..fda406d18e 100644 --- a/cpukit/rtems/src/msgqsubmit.c +++ b/cpukit/rtems/src/msgqsubmit.c @@ -138,7 +138,7 @@ rtems_status_code _Message_queue_Submit( return _Message_queue_Translate_core_message_queue_return_code( msg_status ); - + } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ } diff --git a/cpukit/rtems/src/msgqtranslatereturncode.c b/cpukit/rtems/src/msgqtranslatereturncode.c index 937a5f89f5..69dd3995ed 100644 --- a/cpukit/rtems/src/msgqtranslatereturncode.c +++ b/cpukit/rtems/src/msgqtranslatereturncode.c @@ -41,7 +41,7 @@ * rtems status code - translated RTEMS status code * */ - + rtems_status_code _Message_queue_Translate_core_return_code_[] = { RTEMS_SUCCESSFUL, /* CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL */ RTEMS_INVALID_SIZE, /* CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE */ diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c index 9d657c9749..aea18f68ad 100644 --- a/cpukit/rtems/src/partcreate.c +++ b/cpukit/rtems/src/partcreate.c @@ -64,7 +64,7 @@ rtems_status_code rtems_partition_create( return RTEMS_INVALID_ADDRESS; #if defined(RTEMS_MULTIPROCESSING) - if ( _Attributes_Is_global( attribute_set ) && + if ( _Attributes_Is_global( attribute_set ) && !_System_state_Is_multiprocessing ) return RTEMS_MP_NOT_CONFIGURED; #endif diff --git a/cpukit/rtems/src/ratemoncancel.c b/cpukit/rtems/src/ratemoncancel.c index 7bd0151760..0006843265 100644 --- a/cpukit/rtems/src/ratemoncancel.c +++ b/cpukit/rtems/src/ratemoncancel.c @@ -43,8 +43,8 @@ rtems_status_code rtems_rate_monotonic_cancel( the_period = _Rate_monotonic_Get( id, &location ); switch ( location ) { - case OBJECTS_REMOTE: - return RTEMS_INTERNAL_ERROR; /* should never return this */ + case OBJECTS_REMOTE: + return RTEMS_INTERNAL_ERROR; /* should never return this */ case OBJECTS_ERROR: return RTEMS_INVALID_ID; diff --git a/cpukit/rtems/src/ratemongetstatus.c b/cpukit/rtems/src/ratemongetstatus.c index eb718701d4..93fb05c68a 100644 --- a/cpukit/rtems/src/ratemongetstatus.c +++ b/cpukit/rtems/src/ratemongetstatus.c @@ -24,7 +24,7 @@ * * rtems_rate_monotonic_get_status * - * This directive allows a thread to obtain status information on a + * This directive allows a thread to obtain status information on a * period. * * Input parameters: diff --git a/cpukit/rtems/src/ratemonperiod.c b/cpukit/rtems/src/ratemonperiod.c index ac8a2af00b..ca42e643f5 100644 --- a/cpukit/rtems/src/ratemonperiod.c +++ b/cpukit/rtems/src/ratemonperiod.c @@ -115,9 +115,9 @@ rtems_status_code rtems_rate_monotonic_period( _Thread_Executing->Wait.id = the_period->Object.id; _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD ); - + /* - * Did the watchdog timer expire while we were actually blocking + * Did the watchdog timer expire while we were actually blocking * on it? */ diff --git a/cpukit/rtems/src/regioncreate.c b/cpukit/rtems/src/regioncreate.c index bc24521282..5481505276 100644 --- a/cpukit/rtems/src/regioncreate.c +++ b/cpukit/rtems/src/regioncreate.c @@ -86,7 +86,7 @@ rtems_status_code rtems_region_create( _Thread_queue_Initialize( &the_region->Wait_queue, - _Attributes_Is_priority( attribute_set ) ? + _Attributes_Is_priority( attribute_set ) ? THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO, STATES_WAITING_FOR_SEGMENT, RTEMS_TIMEOUT diff --git a/cpukit/rtems/src/regionreturnsegment.c b/cpukit/rtems/src/regionreturnsegment.c index 7a5242a86d..15d394275f 100644 --- a/cpukit/rtems/src/regionreturnsegment.c +++ b/cpukit/rtems/src/regionreturnsegment.c @@ -101,7 +101,7 @@ rtems_status_code rtems_region_return_segment( break; the_segment = (void **) _Region_Allocate_segment( - the_region, + the_region, the_thread->Wait.count ); diff --git a/cpukit/rtems/src/rtemsidtoname.c b/cpukit/rtems/src/rtemsidtoname.c index ed1384ba24..1f58a80b57 100644 --- a/cpukit/rtems/src/rtemsidtoname.c +++ b/cpukit/rtems/src/rtemsidtoname.c @@ -21,7 +21,7 @@ * * rtems_object_id_to_name * - * This directive returns the name associated with the specified + * This directive returns the name associated with the specified * object ID. * * Input parameters: diff --git a/cpukit/rtems/src/sem.c b/cpukit/rtems/src/sem.c index f506ba0d5e..2c367b0d6d 100644 --- a/cpukit/rtems/src/sem.c +++ b/cpukit/rtems/src/sem.c @@ -75,11 +75,11 @@ void _Semaphore_Manager_initialization( _Semaphore_MP_Send_extract_proxy /* Proxy extraction support callout */ #endif ); - + /* * Register the MP Process Packet routine. */ - + #if defined(RTEMS_MULTIPROCESSING) _MPCI_Register_packet_processor( MP_PACKET_SEMAPHORE, diff --git a/cpukit/rtems/src/semcreate.c b/cpukit/rtems/src/semcreate.c index eadbf2ebe6..76967768ae 100644 --- a/cpukit/rtems/src/semcreate.c +++ b/cpukit/rtems/src/semcreate.c @@ -56,7 +56,7 @@ * name - user defined semaphore name * count - initial count of semaphore * attribute_set - semaphore attributes - * priority_ceiling - semaphore's ceiling priority + * priority_ceiling - semaphore's ceiling priority * id - pointer to semaphore id * * Output parameters: @@ -90,15 +90,15 @@ rtems_status_code rtems_semaphore_create( if ( _Attributes_Is_inherit_priority( attribute_set ) ) return RTEMS_NOT_DEFINED; - } else + } else #endif - if ( _Attributes_Is_inherit_priority( attribute_set ) || + if ( _Attributes_Is_inherit_priority( attribute_set ) || _Attributes_Is_priority_ceiling( attribute_set ) ) { if ( ! ( (_Attributes_Is_binary_semaphore( attribute_set ) || _Attributes_Is_simple_binary_semaphore( attribute_set )) && - + _Attributes_Is_priority( attribute_set ) ) ) return RTEMS_NOT_DEFINED; @@ -129,7 +129,7 @@ rtems_status_code rtems_semaphore_create( the_semaphore->attribute_set = attribute_set; /* - * If it is not a counting semaphore, then it is either a + * If it is not a counting semaphore, then it is either a * simple binary semaphore or a more powerful mutex style binary * semaphore. */ diff --git a/cpukit/rtems/src/semdelete.c b/cpukit/rtems/src/semdelete.c index 9f68a806a4..fd0c21d896 100644 --- a/cpukit/rtems/src/semdelete.c +++ b/cpukit/rtems/src/semdelete.c @@ -95,13 +95,13 @@ rtems_status_code rtems_semaphore_delete( return RTEMS_RESOURCE_IN_USE; } _CORE_mutex_Flush( - &the_semaphore->Core_control.mutex, + &the_semaphore->Core_control.mutex, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_MUTEX_WAS_DELETED ); } else { _CORE_semaphore_Flush( - &the_semaphore->Core_control.semaphore, + &the_semaphore->Core_control.semaphore, SEMAPHORE_MP_OBJECT_WAS_DELETED, CORE_SEMAPHORE_WAS_DELETED ); diff --git a/cpukit/rtems/src/semflush.c b/cpukit/rtems/src/semflush.c index 596ef0f997..c44ebda383 100644 --- a/cpukit/rtems/src/semflush.c +++ b/cpukit/rtems/src/semflush.c @@ -77,15 +77,15 @@ rtems_status_code rtems_semaphore_flush( return RTEMS_INVALID_ID; case OBJECTS_LOCAL: - if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { + if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { _CORE_mutex_Flush( - &the_semaphore->Core_control.mutex, + &the_semaphore->Core_control.mutex, SEND_OBJECT_WAS_DELETED, CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT ); } else { _CORE_semaphore_Flush( - &the_semaphore->Core_control.semaphore, + &the_semaphore->Core_control.semaphore, SEND_OBJECT_WAS_DELETED, CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT ); diff --git a/cpukit/rtems/src/semident.c b/cpukit/rtems/src/semident.c index 8864d4921e..b6031c4e74 100644 --- a/cpukit/rtems/src/semident.c +++ b/cpukit/rtems/src/semident.c @@ -70,13 +70,13 @@ rtems_status_code rtems_semaphore_ident( ) { Objects_Name_or_id_lookup_errors status; - + status = _Objects_Name_to_id( &_Semaphore_Information, (Objects_Name) name, node, id ); - + return _Status_Object_name_errors_to_status[ status ]; } diff --git a/cpukit/rtems/src/semmp.c b/cpukit/rtems/src/semmp.c index 12ed591a53..fff31f1e2f 100644 --- a/cpukit/rtems/src/semmp.c +++ b/cpukit/rtems/src/semmp.c @@ -316,7 +316,7 @@ Semaphore_MP_Packet *_Semaphore_MP_Get_packet ( void ) * * Output parameters: NONE */ - + #if defined(RTEMS_MULTIPROCESSING) void _Semaphore_Core_mutex_mp_support ( Thread_Control *the_thread, @@ -324,7 +324,7 @@ void _Semaphore_Core_mutex_mp_support ( ) { the_thread->receive_packet->return_code = RTEMS_SUCCESSFUL; - + _Semaphore_MP_Send_response_packet( SEMAPHORE_MP_OBTAIN_RESPONSE, id, @@ -344,7 +344,7 @@ void _Semaphore_Core_mutex_mp_support ( * * Output parameters: NONE */ - + #if defined(RTEMS_MULTIPROCESSING) void _Semaphore_Core_semaphore_mp_support ( Thread_Control *the_thread, @@ -352,7 +352,7 @@ void _Semaphore_Core_semaphore_mp_support ( ) { the_thread->receive_packet->return_code = RTEMS_SUCCESSFUL; - + _Semaphore_MP_Send_response_packet( SEMAPHORE_MP_OBTAIN_RESPONSE, id, diff --git a/cpukit/rtems/src/semobtain.c b/cpukit/rtems/src/semobtain.c index 59c801ed86..c376f612c2 100644 --- a/cpukit/rtems/src/semobtain.c +++ b/cpukit/rtems/src/semobtain.c @@ -96,12 +96,12 @@ rtems_status_code rtems_semaphore_obtain( if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) { _CORE_mutex_Seize( &the_semaphore->Core_control.mutex, - id, + id, wait, timeout, level ); - return _Semaphore_Translate_core_mutex_return_code( + return _Semaphore_Translate_core_mutex_return_code( _Thread_Executing->Wait.return_code ); } @@ -113,7 +113,7 @@ rtems_status_code rtems_semaphore_obtain( timeout, &level ); - return _Semaphore_Translate_core_semaphore_return_code( + return _Semaphore_Translate_core_semaphore_return_code( _Thread_Executing->Wait.return_code ); } diff --git a/cpukit/rtems/src/semtranslatereturncode.c b/cpukit/rtems/src/semtranslatereturncode.c index a006a19820..d14ae9d474 100644 --- a/cpukit/rtems/src/semtranslatereturncode.c +++ b/cpukit/rtems/src/semtranslatereturncode.c @@ -56,7 +56,7 @@ * rtems status code - translated RTEMS status code * */ - + rtems_status_code _Semaphore_Translate_core_mutex_return_code_[] = { RTEMS_SUCCESSFUL, /* CORE_MUTEX_STATUS_SUCCESSFUL */ RTEMS_UNSATISFIED, /* CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT */ @@ -73,9 +73,9 @@ rtems_status_code _Semaphore_Translate_core_mutex_return_code ( ) { #if defined(RTEMS_MULTIPROCESSING) - if ( the_mutex_status == THREAD_STATUS_PROXY_BLOCKING ) + if ( the_mutex_status == THREAD_STATUS_PROXY_BLOCKING ) return RTEMS_PROXY_BLOCKING; - else + else #endif if ( the_mutex_status > CORE_MUTEX_STATUS_CEILING_VIOLATED ) return RTEMS_INTERNAL_ERROR; @@ -94,14 +94,14 @@ rtems_status_code _Semaphore_Translate_core_mutex_return_code ( * rtems status code - translated RTEMS status code * */ - + rtems_status_code _Semaphore_Translate_core_semaphore_return_code_[] = { RTEMS_SUCCESSFUL, /* CORE_SEMAPHORE_STATUS_SUCCESSFUL */ RTEMS_UNSATISFIED, /* CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT */ RTEMS_OBJECT_WAS_DELETED, /* CORE_SEMAPHORE_WAS_DELETED */ RTEMS_TIMEOUT, /* CORE_SEMAPHORE_TIMEOUT */ RTEMS_INTERNAL_ERROR, /* CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED */ - + }; rtems_status_code _Semaphore_Translate_core_semaphore_return_code ( @@ -109,9 +109,9 @@ rtems_status_code _Semaphore_Translate_core_semaphore_return_code ( ) { #if defined(RTEMS_MULTIPROCESSING) - if ( the_semaphore_status == THREAD_STATUS_PROXY_BLOCKING ) + if ( the_semaphore_status == THREAD_STATUS_PROXY_BLOCKING ) return RTEMS_PROXY_BLOCKING; - else + else #endif if ( the_semaphore_status > CORE_MUTEX_STATUS_CEILING_VIOLATED ) return RTEMS_INTERNAL_ERROR; diff --git a/cpukit/rtems/src/signal.c b/cpukit/rtems/src/signal.c index 6f9f3e109a..49deff90d0 100644 --- a/cpukit/rtems/src/signal.c +++ b/cpukit/rtems/src/signal.c @@ -31,13 +31,13 @@ * * Output parameters: NONE */ - + void _Signal_Manager_initialization( void ) { /* * Register the MP Process Packet routine. */ - + #if defined(RTEMS_MULTIPROCESSING) _MPCI_Register_packet_processor( MP_PACKET_SIGNAL, diff --git a/cpukit/rtems/src/taskcreate.c b/cpukit/rtems/src/taskcreate.c index 61d5603560..cac5b2d96a 100644 --- a/cpukit/rtems/src/taskcreate.c +++ b/cpukit/rtems/src/taskcreate.c @@ -70,12 +70,12 @@ rtems_status_code rtems_task_create( Priority_Control core_priority; RTEMS_API_Control *api; ASR_Information *asr; - + if ( !rtems_is_name_valid( name ) ) return RTEMS_INVALID_NAME; - /* + /* * Core Thread Initialize insures we get the minimum amount of * stack space. */ @@ -132,7 +132,7 @@ rtems_status_code rtems_task_create( /* * Disable dispatch for protection - */ + */ _Thread_Disable_dispatch(); @@ -171,7 +171,7 @@ rtems_status_code rtems_task_create( status = _Thread_Initialize( &_RTEMS_tasks_Information, - the_thread, + the_thread, NULL, stack_size, is_fp, @@ -197,7 +197,7 @@ rtems_status_code rtems_task_create( api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; asr = &api->Signal; - + asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? FALSE : TRUE; *id = the_thread->Object.id; diff --git a/cpukit/rtems/src/taskdelete.c b/cpukit/rtems/src/taskdelete.c index a5d898d0c2..b0d4b6572d 100644 --- a/cpukit/rtems/src/taskdelete.c +++ b/cpukit/rtems/src/taskdelete.c @@ -74,7 +74,7 @@ rtems_status_code rtems_task_delete( return RTEMS_INVALID_ID; /* This should never happen if _Thread_Get() works right */ } - + _Thread_Close( the_information, the_thread ); _RTEMS_tasks_Free( the_thread ); diff --git a/cpukit/rtems/src/taskmode.c b/cpukit/rtems/src/taskmode.c index 9ad56cc888..e97d7e0a8c 100644 --- a/cpukit/rtems/src/taskmode.c +++ b/cpukit/rtems/src/taskmode.c @@ -82,7 +82,7 @@ rtems_status_code rtems_task_mode( executing->is_preemptible = _Modes_Is_preempt(mode_set) ? TRUE : FALSE; if ( mask & RTEMS_TIMESLICE_MASK ) { - if ( _Modes_Is_timeslice(mode_set) ) + if ( _Modes_Is_timeslice(mode_set) ) executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE; else executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; diff --git a/cpukit/rtems/src/tasks.c b/cpukit/rtems/src/tasks.c index e3424bdb87..dc10c10803 100644 --- a/cpukit/rtems/src/tasks.c +++ b/cpukit/rtems/src/tasks.c @@ -40,7 +40,7 @@ */ boolean _RTEMS_tasks_Create_extension( - Thread_Control *executing, + Thread_Control *executing, Thread_Control *created ) { @@ -53,12 +53,12 @@ boolean _RTEMS_tasks_Create_extension( return FALSE; created->API_Extensions[ THREAD_API_RTEMS ] = api; - + api->pending_events = EVENT_SETS_NONE_PENDING; _ASR_Initialize( &api->Signal ); created->task_variables = NULL; - for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) + for (i=0; i < RTEMS_NUMBER_NOTEPADS; i++) api->Notepads[i] = 0; return TRUE; @@ -71,7 +71,7 @@ boolean _RTEMS_tasks_Create_extension( * This extension routine is invoked when a task is started for the * first time. */ - + User_extensions_routine _RTEMS_tasks_Start_extension( Thread_Control *executing, Thread_Control *started @@ -80,7 +80,7 @@ User_extensions_routine _RTEMS_tasks_Start_extension( RTEMS_API_Control *api; api = started->API_Extensions[ THREAD_API_RTEMS ]; - + api->pending_events = EVENT_SETS_NONE_PENDING; _ASR_Initialize( &api->Signal ); @@ -92,9 +92,9 @@ User_extensions_routine _RTEMS_tasks_Start_extension( * * This extension routine is invoked when a task is deleted. */ - + User_extensions_routine _RTEMS_tasks_Delete_extension( - Thread_Control *executing, + Thread_Control *executing, Thread_Control *deleted ) { @@ -130,7 +130,7 @@ User_extensions_routine _RTEMS_tasks_Delete_extension( * * This extension routine is invoked at each context switch. */ - + void _RTEMS_tasks_Switch_extension( Thread_Control *executing, Thread_Control *heir @@ -154,7 +154,7 @@ void _RTEMS_tasks_Switch_extension( tvp->gval = *tvp->ptr; *tvp->ptr = tvp->tval; tvp = tvp->next; - } + } } /*PAGE @@ -163,7 +163,7 @@ void _RTEMS_tasks_Switch_extension( * * This extension routine is invoked at each context switch. */ - + void _RTEMS_tasks_Post_switch_extension( Thread_Control *executing ) @@ -181,19 +181,19 @@ void _RTEMS_tasks_Post_switch_extension( */ asr = &api->Signal; - + _ISR_Disable( level ); signal_set = asr->signals_posted; asr->signals_posted = 0; _ISR_Enable( level ); - - + + if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ return; - + asr->nest_level += 1; rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); - + (*asr->handler)( signal_set ); asr->nest_level -= 1; diff --git a/cpukit/rtems/src/taskvariableadd.c b/cpukit/rtems/src/taskvariableadd.c index 5347728b53..46b7186cff 100644 --- a/cpukit/rtems/src/taskvariableadd.c +++ b/cpukit/rtems/src/taskvariableadd.c @@ -19,7 +19,7 @@ /* * rtems_task_variable_add * - * This directive registers a task variable. + * This directive registers a task variable. */ rtems_status_code rtems_task_variable_add( diff --git a/cpukit/rtems/src/taskvariabledelete.c b/cpukit/rtems/src/taskvariabledelete.c index 43a45471ab..6089306ae4 100644 --- a/cpukit/rtems/src/taskvariabledelete.c +++ b/cpukit/rtems/src/taskvariabledelete.c @@ -19,7 +19,7 @@ /* * rtems_task_variable_delete * - * This directive removes a task variable. + * This directive removes a task variable. */ rtems_status_code rtems_task_variable_delete( diff --git a/cpukit/rtems/src/taskvariableget.c b/cpukit/rtems/src/taskvariableget.c index 747f635e63..140729351e 100644 --- a/cpukit/rtems/src/taskvariableget.c +++ b/cpukit/rtems/src/taskvariableget.c @@ -19,7 +19,7 @@ /* * rtems_task_variable_get * - * This directive gets the value of a task variable. + * This directive gets the value of a task variable. */ rtems_status_code rtems_task_variable_get( diff --git a/cpukit/rtems/src/timercancel.c b/cpukit/rtems/src/timercancel.c index 9f3a7afadb..421662c946 100644 --- a/cpukit/rtems/src/timercancel.c +++ b/cpukit/rtems/src/timercancel.c @@ -51,7 +51,7 @@ rtems_status_code rtems_timer_cancel( return RTEMS_INVALID_ID; case OBJECTS_LOCAL: - if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) + if ( !_Timer_Is_dormant_class( the_timer->the_class ) ) (void) _Watchdog_Remove( &the_timer->Ticker ); _Thread_Enable_dispatch(); return RTEMS_SUCCESSFUL; diff --git a/cpukit/rtems/src/timergetinfo.c b/cpukit/rtems/src/timergetinfo.c index 98b94056cf..9c21b84a3d 100644 --- a/cpukit/rtems/src/timergetinfo.c +++ b/cpukit/rtems/src/timergetinfo.c @@ -35,7 +35,7 @@ * *the_info - region information block filled in * RTEMS_SUCCESSFUL - if successful * error code - if unsuccessful - * + * */ rtems_status_code rtems_timer_get_information( diff --git a/cpukit/rtems/src/timerserver.c b/cpukit/rtems/src/timerserver.c index fb3b723bc4..a92a828423 100644 --- a/cpukit/rtems/src/timerserver.c +++ b/cpukit/rtems/src/timerserver.c @@ -93,16 +93,16 @@ Thread _Timer_Server_body( _Thread_Enable_dispatch(); /* - * At this point, at least one of the timers this task relies + * At this point, at least one of the timers this task relies * upon has fired. Stop them both while we process any outstanding * timers. Before we block, we will restart them. */ - + _Timer_Server_stop_ticks_timer(); _Timer_Server_stop_seconds_timer(); /* - * Disable dispatching while processing the timers since we want + * Disable dispatching while processing the timers since we want * to mimic the environment that non-task-based TSRs execute in. * This ensures that the primary difference is that _ISR_Nest_level * is 0 for task-based timers and non-zero for the others. @@ -124,7 +124,7 @@ Thread _Timer_Server_body( * It must be invoked before any task-based timers can be initiated. * * Input parameters: - * priority - timer server priority + * priority - timer server priority * stack_size - stack size in bytes * attribute_set - timer server attributes * @@ -149,7 +149,7 @@ rtems_status_code rtems_timer_initiate_server( */ _priority = priority; - if ( priority == RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) + if ( priority == RTEMS_TIMER_SERVER_DEFAULT_PRIORITY ) _priority = 0; else if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) return RTEMS_INVALID_PRIORITY; @@ -173,7 +173,7 @@ rtems_status_code rtems_timer_initiate_server( * an interrupt to other tasks. * * We allow the user to override the default priority because the Timer - * Server can invoke TSRs which must adhere to language run-time or + * Server can invoke TSRs which must adhere to language run-time or * other library rules. For example, if using a TSR written in Ada the * Server should run at the same priority as the priority Ada task. * Otherwise, the priority ceiling for the mutex used to protect the @@ -204,7 +204,7 @@ rtems_status_code rtems_timer_initiate_server( /* * One would expect a call to rtems_task_delete() here to clean up * but there is actually no way (in normal circumstances) that the - * start can fail. The id and starting address are known to be + * start can fail. The id and starting address are known to be * be good. If this service fails, something is weirdly wrong on the * target such as a stray write in an ISR or incorrect memory layout. */ @@ -232,8 +232,8 @@ rtems_status_code rtems_timer_initiate_server( _Chain_Initialize_empty( &_Timer_Ticks_chain ); _Chain_Initialize_empty( &_Timer_Seconds_chain ); - /* - * Initialize the timers that will be used to control when the + /* + * Initialize the timers that will be used to control when the * Timer Server wakes up and services the task-based timers. */ @@ -248,7 +248,7 @@ rtems_status_code rtems_timer_initiate_server( * * _Timer_Server_process_ticks_chain * - * This routine is responsible for adjusting the list of task-based + * This routine is responsible for adjusting the list of task-based * interval timers to reflect the passage of time. * * Input parameters: NONE @@ -266,7 +266,7 @@ void _Timer_Server_process_ticks_chain(void) ticks = snapshot - _Timer_Server_ticks_last_time; else ticks = (0xFFFFFFFF - _Timer_Server_ticks_last_time) + snapshot; - + _Timer_Server_ticks_last_time = snapshot; _Watchdog_Adjust( &_Timer_Ticks_chain, WATCHDOG_FORWARD, ticks ); } @@ -275,7 +275,7 @@ void _Timer_Server_process_ticks_chain(void) * * _Timer_Server_process_seconds_chain * - * This routine is responsible for adjusting the list of task-based + * This routine is responsible for adjusting the list of task-based * time of day timers to reflect the passage of time. * * Input parameters: NONE @@ -289,7 +289,7 @@ void _Timer_Server_process_seconds_chain(void) Watchdog_Interval ticks; /* - * Process the seconds chain. Start by checking that the Time + * Process the seconds chain. Start by checking that the Time * of Day (TOD) has not been set backwards. If it has then * we want to adjust the _Timer_Seconds_chain to indicate this. */ @@ -304,7 +304,7 @@ void _Timer_Server_process_seconds_chain(void) ticks = snapshot - _Timer_Server_seconds_last_time; _Watchdog_Adjust( &_Timer_Seconds_chain, WATCHDOG_FORWARD, ticks ); - } else if ( snapshot < _Timer_Server_seconds_last_time ) { + } else if ( snapshot < _Timer_Server_seconds_last_time ) { /* * The current TOD is before the last TOD which indicates that * TOD has been set backwards. diff --git a/cpukit/rtems/src/timerserverfireafter.c b/cpukit/rtems/src/timerserverfireafter.c index 341e07a46e..05d916b59b 100644 --- a/cpukit/rtems/src/timerserverfireafter.c +++ b/cpukit/rtems/src/timerserverfireafter.c @@ -25,7 +25,7 @@ * * rtems_timer_server_fire_after * - * This directive allows a thread to start a timer which will by + * This directive allows a thread to start a timer which will by * executed by the Timer Server when it fires. * * Input parameters: diff --git a/cpukit/rtems/src/timerserverfirewhen.c b/cpukit/rtems/src/timerserverfirewhen.c index 52075a839a..4f4c2d6b50 100644 --- a/cpukit/rtems/src/timerserverfirewhen.c +++ b/cpukit/rtems/src/timerserverfirewhen.c @@ -25,7 +25,7 @@ * * rtems_timer_server_fire_when * - * This directive allows a thread to start a timer which will by + * This directive allows a thread to start a timer which will by * executed by the Timer Server when it fires. * * Input parameters: |