diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-18 06:13:55 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-18 06:13:55 +0000 |
commit | a0ed4edee0b01392c5274ec85b26cf682a9ade3e (patch) | |
tree | 18fc392d8e8e24200cf2f38c4eda011df4442bd4 /cpukit/score | |
parent | Remove stray white spaces. (diff) | |
download | rtems-a0ed4edee0b01392c5274ec85b26cf682a9ade3e.tar.bz2 |
Remove stray white spaces.
Diffstat (limited to '')
55 files changed, 112 insertions, 112 deletions
diff --git a/cpukit/score/include/rtems/debug.h b/cpukit/score/include/rtems/debug.h index 0dedf89ce9..0946cd5b91 100644 --- a/cpukit/score/include/rtems/debug.h +++ b/cpukit/score/include/rtems/debug.h @@ -1,7 +1,7 @@ /* debug.h * * This include file contains the information pertaining to the debug - * support within RTEMS. It is currently cast in the form of a + * support within RTEMS. It is currently cast in the form of a * Manager since it is externally accessible. * * diff --git a/cpukit/score/include/rtems/score/apiext.h b/cpukit/score/include/rtems/score/apiext.h index 31206d4f83..d5e496c001 100644 --- a/cpukit/score/include/rtems/score/apiext.h +++ b/cpukit/score/include/rtems/score/apiext.h @@ -30,7 +30,7 @@ typedef void (*API_extensions_Postswitch_hook)( Thread_Control * ); - + typedef struct { Chain_Node Node; API_extensions_Predriver_hook predriver_hook; diff --git a/cpukit/score/include/rtems/score/apimutex.h b/cpukit/score/include/rtems/score/apimutex.h index 65ebb5ec0a..ed345c7c76 100644 --- a/cpukit/score/include/rtems/score/apimutex.h +++ b/cpukit/score/include/rtems/score/apimutex.h @@ -1,7 +1,7 @@ /* apimutex.h * * This include file contains all the constants and structures associated - * with the API Mutex Handler. This handler is used by API level + * with the API Mutex Handler. This handler is used by API level * routines to manage mutual exclusion. * * COPYRIGHT (c) 1989-2002. diff --git a/cpukit/score/include/rtems/score/coremsg.h b/cpukit/score/include/rtems/score/coremsg.h index d11383ba0a..70906135a4 100644 --- a/cpukit/score/include/rtems/score/coremsg.h +++ b/cpukit/score/include/rtems/score/coremsg.h @@ -41,7 +41,7 @@ typedef void ( *CORE_message_queue_API_mp_support_callout )( * the contents of message buffers. * * NOTE: The buffer field is normally longer than a single uint32_t . - * but since messages are variable length we just make a ptr to 1. + * but since messages are variable length we just make a ptr to 1. */ typedef struct { @@ -100,7 +100,7 @@ typedef enum { } CORE_message_queue_Status; /* - * The following defines the control block used to manage the + * The following defines the control block used to manage the * attributes of each message queue. */ @@ -117,7 +117,7 @@ typedef struct { typedef void (*CORE_message_queue_Notify_Handler)( void * ); /* - * The following defines the control block used to manage each + * The following defines the control block used to manage each * counting message_queue. */ @@ -276,7 +276,7 @@ void _CORE_message_queue_Seize( * * DESCRIPTION: * - * This kernel routine inserts the specified message into the + * This kernel routine inserts the specified message into the * message queue. It is assumed that the message has been filled * in before this routine is called. */ diff --git a/cpukit/score/include/rtems/score/coremutex.h b/cpukit/score/include/rtems/score/coremutex.h index 34baa420f0..ec55009843 100644 --- a/cpukit/score/include/rtems/score/coremutex.h +++ b/cpukit/score/include/rtems/score/coremutex.h @@ -2,7 +2,7 @@ * * This include file contains all the constants and structures associated * with the Mutex Handler. A mutex is an enhanced version of the standard - * Dijkstra binary semaphore used to provide synchronization and mutual + * Dijkstra binary semaphore used to provide synchronization and mutual * exclusion capabilities. * * COPYRIGHT (c) 1989-1999. @@ -101,7 +101,7 @@ typedef enum { #define CORE_MUTEX_LOCKED 0 /* - * The following defines the control block used to manage the + * The following defines the control block used to manage the * attributes of each mutex. */ diff --git a/cpukit/score/include/rtems/score/coresem.h b/cpukit/score/include/rtems/score/coresem.h index 12ef3ca7ee..e9be0036ab 100644 --- a/cpukit/score/include/rtems/score/coresem.h +++ b/cpukit/score/include/rtems/score/coresem.h @@ -59,7 +59,7 @@ typedef enum { } CORE_semaphore_Status; /* - * The following defines the control block used to manage the + * The following defines the control block used to manage the * attributes of each semaphore. */ @@ -69,7 +69,7 @@ typedef struct { } CORE_semaphore_Attributes; /* - * The following defines the control block used to manage each + * The following defines the control block used to manage each * counting semaphore. */ diff --git a/cpukit/score/include/rtems/score/heap.h b/cpukit/score/include/rtems/score/heap.h index 906e620988..9b1387ecbf 100644 --- a/cpukit/score/include/rtems/score/heap.h +++ b/cpukit/score/include/rtems/score/heap.h @@ -245,7 +245,7 @@ void _Heap_Walk( * the_heap - pointer to heap header * the_info - pointer to information block * - * Output parameters: + * Output parameters: * *the_info - status information * return 0=success, otherwise heap is corrupt. */ diff --git a/cpukit/score/include/rtems/score/interr.h b/cpukit/score/include/rtems/score/interr.h index 334c36fae4..536e30bef0 100644 --- a/cpukit/score/include/rtems/score/interr.h +++ b/cpukit/score/include/rtems/score/interr.h @@ -1,7 +1,7 @@ /* interr.h * * This include file contains constants and prototypes related - * to the Internal Error Handler. + * to the Internal Error Handler. * * * COPYRIGHT (c) 1989-1999. diff --git a/cpukit/score/include/rtems/score/mpci.h b/cpukit/score/include/rtems/score/mpci.h index 7ad9b40f29..118e31afaa 100644 --- a/cpukit/score/include/rtems/score/mpci.h +++ b/cpukit/score/include/rtems/score/mpci.h @@ -152,7 +152,7 @@ SCORE_EXTERN Thread_Control *_MPCI_Receive_server_tcb; * by each object that supports MP operations. */ -SCORE_EXTERN MPCI_Packet_processor +SCORE_EXTERN MPCI_Packet_processor _MPCI_Packet_processors[MP_PACKET_CLASSES_LAST+1]; /* @@ -163,7 +163,7 @@ SCORE_EXTERN MPCI_Packet_processor * This routine performs the initialization necessary for this handler. */ -void _MPCI_Handler_initialization( +void _MPCI_Handler_initialization( MPCI_Control *users_mpci_table, uint32_t timeout_status ); @@ -172,7 +172,7 @@ void _MPCI_Handler_initialization( * _MPCI_Create_server * * DESCRIPTION: - * + * * This routine creates the packet receive server used in MP systems. */ @@ -198,7 +198,7 @@ void _MPCI_Initialization ( void ); * designated object class. */ -void _MPCI_Register_packet_processor( +void _MPCI_Register_packet_processor( MP_packet_Classes the_class, MPCI_Packet_processor the_packet_processor diff --git a/cpukit/score/include/rtems/score/object.h b/cpukit/score/include/rtems/score/object.h index 4c61e3a4c0..da43ecdaca 100644 --- a/cpukit/score/include/rtems/score/object.h +++ b/cpukit/score/include/rtems/score/object.h @@ -2,7 +2,7 @@ * * This include file contains all the constants and structures associated * with the Object Handler. This Handler provides mechanisms which - * can be used to initialize and manipulate all objects which have + * can be used to initialize and manipulate all objects which have * ids. * * COPYRIGHT (c) 1989-2002. @@ -478,7 +478,7 @@ Objects_Name_or_id_lookup_errors _Objects_Name_to_id( * * This function implements the common portion of the object Id * to name directives. This function returns the name - * associated with object id. + * associated with object id. * * NOTE: * @@ -504,7 +504,7 @@ Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( * is undefined. Otherwise, location is set to OBJECTS_ERROR * and the_object is undefined. * - * NOTE: _Objects_Get returns with dispatching disabled for + * NOTE: _Objects_Get returns with dispatching disabled for * local and remote objects. * _Objects_Get_isr_disable returns with dispatching * disabled for remote objects and interrupts for local diff --git a/cpukit/score/include/rtems/score/objectmp.h b/cpukit/score/include/rtems/score/objectmp.h index 331d22fed1..947b03c59d 100644 --- a/cpukit/score/include/rtems/score/objectmp.h +++ b/cpukit/score/include/rtems/score/objectmp.h @@ -52,8 +52,8 @@ void _Objects_MP_Handler_initialization ( * * DESCRIPTION: * - * This routine place the specified global object in the - * specified information table. + * This routine place the specified global object in the + * specified information table. */ void _Objects_MP_Open ( diff --git a/cpukit/score/include/rtems/score/priority.h b/cpukit/score/include/rtems/score/priority.h index 0f2df0d252..3c8454f203 100644 --- a/cpukit/score/include/rtems/score/priority.h +++ b/cpukit/score/include/rtems/score/priority.h @@ -58,7 +58,7 @@ typedef struct { */ SCORE_EXTERN volatile Priority_Bit_map_control _Priority_Major_bit_map; -SCORE_EXTERN Priority_Bit_map_control +SCORE_EXTERN Priority_Bit_map_control _Priority_Bit_map[16] CPU_STRUCTURE_ALIGNMENT; /* diff --git a/cpukit/score/include/rtems/score/states.h b/cpukit/score/include/rtems/score/states.h index 9c073a5826..59d27c274e 100644 --- a/cpukit/score/include/rtems/score/states.h +++ b/cpukit/score/include/rtems/score/states.h @@ -38,7 +38,7 @@ typedef uint32_t States_Control; #define STATES_TRANSIENT 0x00004 /* in transition */ #define STATES_DELAYING 0x00008 /* wait for timeout */ #define STATES_WAITING_FOR_TIME 0x00010 /* wait for TOD */ -#define STATES_WAITING_FOR_BUFFER 0x00020 +#define STATES_WAITING_FOR_BUFFER 0x00020 #define STATES_WAITING_FOR_SEGMENT 0x00040 #define STATES_WAITING_FOR_MESSAGE 0x00080 #define STATES_WAITING_FOR_EVENT 0x00100 diff --git a/cpukit/score/include/rtems/score/sysstate.h b/cpukit/score/include/rtems/score/sysstate.h index 655d303db8..2f0636399b 100644 --- a/cpukit/score/include/rtems/score/sysstate.h +++ b/cpukit/score/include/rtems/score/sysstate.h @@ -40,7 +40,7 @@ typedef enum { #define SYSTEM_STATE_CODES_LAST SYSTEM_STATE_FAILED /* - * The following variable indicates whether or not this is + * The following variable indicates whether or not this is * an multiprocessing system. */ diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index f73f43dd7a..8090656461 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -37,7 +37,7 @@ extern "C" { * The following defines the "return type" of a thread. * * NOTE: This cannot always be right. Some APIs have void - * tasks/threads, others return pointers, others may + * tasks/threads, others return pointers, others may * return a numeric value. Hopefully a pointer is * always at least as big as an uint32_t . :) */ @@ -141,7 +141,7 @@ typedef struct { /* * NOTE: The following assumes that all API return codes can be - * treated as an uint32_t . + * treated as an uint32_t . */ uint32_t return_code; /* status for thread awakened */ @@ -248,7 +248,7 @@ SCORE_EXTERN Thread_Control *_Thread_Idle; /* * The following context area contains the context of the "thread" - * which invoked the start multitasking routine. This context is + * which invoked the start multitasking routine. This context is * restored as the last action of the stop multitasking routine. Thus * control of the processor can be returned to the environment * which initiated the system. @@ -381,7 +381,7 @@ void _Thread_Dispatch( void ); /* * _Thread_Stack_Allocate - * + * * DESCRIPTION: * * Allocate the requested stack space for the thread. @@ -608,11 +608,11 @@ void _Thread_Tickle_timeslice( void ); void _Thread_Yield_processor( void ); -/* +/* * _Thread_Rotate_Ready_Queue - * + * * DESCRIPTION: - * + * * This routine is invoked to rotate the ready queue for the * given priority. It can be used to yeild the processor * by rotating the executing threads ready queue. @@ -727,7 +727,7 @@ void _Thread_Resume( * DESCRIPTION: * * This routine evaluates the current scheduling information for the - * system and determines if a context switch is required. This + * system and determines if a context switch is required. This * is usually called after changing an execution mode such as preemptability * for a thread. */ diff --git a/cpukit/score/include/rtems/score/threadq.h b/cpukit/score/include/rtems/score/threadq.h index f8a5342513..cbbb85e345 100644 --- a/cpukit/score/include/rtems/score/threadq.h +++ b/cpukit/score/include/rtems/score/threadq.h @@ -52,7 +52,7 @@ typedef void ( *Thread_queue_Extract_callout )( Thread_Control * ); -SCORE_EXTERN Thread_queue_Extract_callout +SCORE_EXTERN Thread_queue_Extract_callout _Thread_queue_Extract_table[ OBJECTS_CLASSES_LAST + 1 ]; #endif @@ -105,7 +105,7 @@ void _Thread_queue_Extract( * DESCRIPTION: * * This routine extracts the_thread from the_thread_queue - * and ensures that if there is a proxy for this task on + * and ensures that if there is a proxy for this task on * another node, it is also dealt with. */ diff --git a/cpukit/score/include/rtems/score/tqdata.h b/cpukit/score/include/rtems/score/tqdata.h index ed1d52c1ee..4945c74e3f 100644 --- a/cpukit/score/include/rtems/score/tqdata.h +++ b/cpukit/score/include/rtems/score/tqdata.h @@ -52,7 +52,7 @@ typedef enum { * There are four chains used to maintain a priority -- each chain * manages a distinct set of task priorities. The number of chains * is determined by TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS. - * The following set must be consistent. + * The following set must be consistent. * * The set below configures 4 headers -- each contains 64 priorities. * Header x manages priority range (x*64) through ((x*64)+63). If @@ -61,7 +61,7 @@ typedef enum { * This halves the search time to find the insertion point. */ -#define TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS 4 +#define TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS 4 #define TASK_QUEUE_DATA_PRIORITIES_PER_HEADER 64 #define TASK_QUEUE_DATA_REVERSE_SEARCH_MASK 0x20 diff --git a/cpukit/score/include/rtems/score/wkspace.h b/cpukit/score/include/rtems/score/wkspace.h index da424cd899..aff79c78d5 100644 --- a/cpukit/score/include/rtems/score/wkspace.h +++ b/cpukit/score/include/rtems/score/wkspace.h @@ -1,6 +1,6 @@ /* wkspace.h * - * This include file contains information related to the + * This include file contains information related to the * RAM Workspace. This Handler provides mechanisms which can be used to * define, initialize and manipulate the workspace. * diff --git a/cpukit/score/include/rtems/system.h b/cpukit/score/include/rtems/system.h index d0ca5748a3..c2fbf7694b 100644 --- a/cpukit/score/include/rtems/system.h +++ b/cpukit/score/include/rtems/system.h @@ -30,7 +30,7 @@ extern "C" { #define __RTEMS_REVISION__ 0 /* - * The cpu options include file defines all cpu dependent + * The cpu options include file defines all cpu dependent * parameters for this build of RTEMS. It must be included * first so the basic macro definitions are in place. */ @@ -40,7 +40,7 @@ extern "C" { /* * The following ensures that all data is declared in the space * of the initialization routine for either the Initialization Manager - * or the initialization file for the appropriate API. It is + * or the initialization file for the appropriate API. It is * referenced as "external" in every other file. */ diff --git a/cpukit/score/src/coremsg.c b/cpukit/score/src/coremsg.c index 75fa7c170e..678da1d0b8 100644 --- a/cpukit/score/src/coremsg.c +++ b/cpukit/score/src/coremsg.c @@ -76,7 +76,7 @@ boolean _CORE_message_queue_Initialize( message_buffering_required = maximum_pending_messages * (allocated_message_size + sizeof(CORE_message_queue_Buffer_control)); - the_message_queue->message_buffers = (CORE_message_queue_Buffer *) + the_message_queue->message_buffers = (CORE_message_queue_Buffer *) _Workspace_Allocate( message_buffering_required ); if (the_message_queue->message_buffers == 0) diff --git a/cpukit/score/src/coremsgflushsupp.c b/cpukit/score/src/coremsgflushsupp.c index d0e2c99841..ddde563232 100644 --- a/cpukit/score/src/coremsgflushsupp.c +++ b/cpukit/score/src/coremsgflushsupp.c @@ -65,7 +65,7 @@ uint32_t _CORE_message_queue_Flush_support( * waiting to send, there are two basic behaviors envisioned: * * (1) The thread queue of pending senders is a logical extension - * of the pending message queue. In this case, it should be + * of the pending message queue. In this case, it should be * flushed using the _Thread_queue_Flush() service with a status * such as CORE_MESSAGE_QUEUE_SENDER_FLUSHED (which currently does * not exist). This can be implemented without changing the "big-O" @@ -80,7 +80,7 @@ uint32_t _CORE_message_queue_Flush_support( * then the existing flush code can be used to dispose of the remaining * pending messages. * - * For now, though, we are very happy to have a small routine with + * For now, though, we are very happy to have a small routine with * fixed execution time that only deals with pending messages. */ diff --git a/cpukit/score/src/coremsgflushwait.c b/cpukit/score/src/coremsgflushwait.c index 19d8e8f343..c7687ca797 100644 --- a/cpukit/score/src/coremsgflushwait.c +++ b/cpukit/score/src/coremsgflushwait.c @@ -52,7 +52,7 @@ void _CORE_message_queue_Flush_waiting_threads( /* * IF there are no pending messages, * THEN threads may be blocked waiting to RECEIVE a message, - * + * * IF the pending message queue is full * THEN threads may be blocked waiting to SEND a message * diff --git a/cpukit/score/src/coremsginsert.c b/cpukit/score/src/coremsginsert.c index 21f8f8dd25..698cf3b60f 100644 --- a/cpukit/score/src/coremsginsert.c +++ b/cpukit/score/src/coremsginsert.c @@ -96,7 +96,7 @@ void _CORE_message_queue_Insert_message( * the message is actually in the queue at this point. */ - if ( the_message_queue->number_of_pending_messages == 1 && + if ( the_message_queue->number_of_pending_messages == 1 && the_message_queue->notify_handler ) (*the_message_queue->notify_handler)( the_message_queue->notify_argument ); } diff --git a/cpukit/score/src/coremsgseize.c b/cpukit/score/src/coremsgseize.c index ed140f0d90..050d361769 100644 --- a/cpukit/score/src/coremsgseize.c +++ b/cpukit/score/src/coremsgseize.c @@ -97,8 +97,8 @@ void _CORE_message_queue_Seize( } /* - * There was a thread waiting to send a message. This code - * puts the messages in the message queue on behalf of the + * There was a thread waiting to send a message. This code + * puts the messages in the message queue on behalf of the * waiting task. */ diff --git a/cpukit/score/src/coremsgsubmit.c b/cpukit/score/src/coremsgsubmit.c index ede23d285e..4c57535c13 100644 --- a/cpukit/score/src/coremsgsubmit.c +++ b/cpukit/score/src/coremsgsubmit.c @@ -151,12 +151,12 @@ CORE_message_queue_Status _CORE_message_queue_Submit( /* * WARNING!! executing should NOT be used prior to this point. - * Thus the unusual choice to open a new scope and declare + * Thus the unusual choice to open a new scope and declare * it as a variable. Doing this emphasizes how dangerous it * would be to use this variable prior to here. */ - { + { Thread_Control *executing = _Thread_Executing; _ISR_Disable( level ); diff --git a/cpukit/score/src/coremutex.c b/cpukit/score/src/coremutex.c index 6ec0f1ccf0..8e8b7456d8 100644 --- a/cpukit/score/src/coremutex.c +++ b/cpukit/score/src/coremutex.c @@ -30,7 +30,7 @@ * This routine initializes a mutex at create time and set the control * structure according to the values passed. * - * Input parameters: + * Input parameters: * the_mutex - the mutex control block to initialize * the_mutex_attributes - the mutex attributes specified at create time * initial_lock - mutex initial lock or unlocked status @@ -45,7 +45,7 @@ void _CORE_mutex_Initialize( ) { -/* Add this to the RTEMS environment later ????????? +/* Add this to the RTEMS environment later ????????? rtems_assert( initial_lock == CORE_MUTEX_LOCKED || initial_lock == CORE_MUTEX_UNLOCKED ); */ diff --git a/cpukit/score/src/coremutexseize.c b/cpukit/score/src/coremutexseize.c index c6223f18f6..2645bcc5d8 100644 --- a/cpukit/score/src/coremutexseize.c +++ b/cpukit/score/src/coremutexseize.c @@ -80,7 +80,7 @@ int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) -{ +{ Thread_Control *executing; ISR_Level level = *level_p; diff --git a/cpukit/score/src/coremutexsurrender.c b/cpukit/score/src/coremutexsurrender.c index 8866fce693..d527d1fa79 100644 --- a/cpukit/score/src/coremutexsurrender.c +++ b/cpukit/score/src/coremutexsurrender.c @@ -59,7 +59,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( * allowed when the mutex in quetion is FIFO or simple Priority * discipline. But Priority Ceiling or Priority Inheritance mutexes * must be released by the thread which acquired them. - */ + */ if ( the_mutex->Attributes.only_owner_release ) { if ( !_Thread_Is_executing( holder ) ) @@ -68,7 +68,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( /* XXX already unlocked -- not right status */ - if ( !the_mutex->nest_count ) + if ( !the_mutex->nest_count ) return CORE_MUTEX_STATUS_SUCCESSFUL; the_mutex->nest_count--; @@ -100,7 +100,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || _CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { - if ( holder->resource_count == 0 && + if ( holder->resource_count == 0 && holder->real_priority != holder->current_priority ) { _Thread_Change_priority( holder, holder->real_priority, TRUE ); } @@ -117,7 +117,7 @@ CORE_mutex_Status _CORE_mutex_Surrender( ( *api_mutex_mp_support)( the_thread, id ); - } else + } else #endif { diff --git a/cpukit/score/src/heapextend.c b/cpukit/score/src/heapextend.c index d1608d62ea..3cb318d70b 100644 --- a/cpukit/score/src/heapextend.c +++ b/cpukit/score/src/heapextend.c @@ -93,7 +93,7 @@ Heap_Extend_status _Heap_Extend( the_heap->final = new_final; - old_final->front_flag = + old_final->front_flag = new_final->back_flag = _Heap_Build_flag( size, HEAP_BLOCK_USED ); new_final->front_flag = HEAP_DUMMY_FLAG; diff --git a/cpukit/score/src/heapgetinfo.c b/cpukit/score/src/heapgetinfo.c index 2e7e2f28c9..b3f878f5f2 100644 --- a/cpukit/score/src/heapgetinfo.c +++ b/cpukit/score/src/heapgetinfo.c @@ -26,7 +26,7 @@ * the_heap - pointer to heap header * the_info - pointer for information to be returned * - * Output parameters: + * Output parameters: * *the_info - contains information about heap * return 0=success, otherwise heap is corrupt. */ diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index a132c10cf3..adc2690dc6 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -35,7 +35,7 @@ * This subprogram performs the initialization necessary for this handler. */ -void _MPCI_Handler_initialization( +void _MPCI_Handler_initialization( MPCI_Control *users_mpci_table, uint32_t timeout_status ) diff --git a/cpukit/score/src/objectallocate.c b/cpukit/score/src/objectallocate.c index 3a2d418b7a..4ad0da6756 100644 --- a/cpukit/score/src/objectallocate.c +++ b/cpukit/score/src/objectallocate.c @@ -38,7 +38,7 @@ Objects_Control *_Objects_Allocate( Objects_Information *information ) { - Objects_Control *the_object = + Objects_Control *the_object = (Objects_Control *) _Chain_Get( &information->Inactive ); if ( information->auto_extend ) { diff --git a/cpukit/score/src/objectallocatebyindex.c b/cpukit/score/src/objectallocatebyindex.c index af13780ad6..d3ca6423f1 100644 --- a/cpukit/score/src/objectallocatebyindex.c +++ b/cpukit/score/src/objectallocatebyindex.c @@ -30,8 +30,8 @@ * * DESCRIPTION: * - * This function allocates the object control block - * specified by the index from the inactive chain of + * This function allocates the object control block + * specified by the index from the inactive chain of * free object control blocks. */ @@ -61,8 +61,8 @@ Objects_Control *_Objects_Allocate_by_index( ); _Chain_Extract( &the_object->Node ); - return the_object; - } + return the_object; + } /* * Autoextend will have to be thought out as it applies diff --git a/cpukit/score/src/objectclearname.c b/cpukit/score/src/objectclearname.c index 3d48ac039f..4ba3514f84 100644 --- a/cpukit/score/src/objectclearname.c +++ b/cpukit/score/src/objectclearname.c @@ -41,6 +41,6 @@ void _Objects_Clear_name( uint32_t maximum = length / OBJECTS_NAME_ALIGNMENT; uint32_t *name_ptr = (uint32_t *) name; - for ( index=0 ; index < maximum ; index++ ) + for ( index=0 ; index < maximum ; index++ ) *name_ptr++ = 0; } diff --git a/cpukit/score/src/objectextendinformation.c b/cpukit/score/src/objectextendinformation.c index 0b28eb7852..b8652a4567 100644 --- a/cpukit/score/src/objectextendinformation.c +++ b/cpukit/score/src/objectextendinformation.c @@ -84,7 +84,7 @@ void _Objects_Extend_information( uint32_t *inactive_per_block; Objects_Control **local_table; uint32_t maximum; - void *old_tables; + void *old_tables; /* * Growing the tables means allocating a new area, doing a copy and @@ -130,7 +130,7 @@ void _Objects_Extend_information( else { object_blocks = (void**) _Workspace_Allocate_or_fatal_error( - block_count * + block_count * (sizeof(void *) + sizeof(uint32_t ) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)) ); @@ -209,7 +209,7 @@ void _Objects_Extend_information( information->local_table = local_table; information->maximum = maximum; information->maximum_id = _Objects_Build_id( - information->the_api, + information->the_api, information->the_class, _Objects_Local_node, information->maximum @@ -228,7 +228,7 @@ void _Objects_Extend_information( */ if ( information->auto_extend ) { - information->object_blocks[ block ] = + information->object_blocks[ block ] = _Workspace_Allocate( (information->allocation_size * information->name_length) + (information->allocation_size * information->size) @@ -238,7 +238,7 @@ void _Objects_Extend_information( return; } else { - information->object_blocks[ block ] = + information->object_blocks[ block ] = _Workspace_Allocate_or_fatal_error( (information->allocation_size * information->name_length) + (information->allocation_size * information->size) @@ -271,7 +271,7 @@ void _Objects_Extend_information( while ( (the_object = (Objects_Control *) _Chain_Get( &Inactive ) ) != NULL ) { the_object->id = _Objects_Build_id( - information->the_api, + information->the_api, information->the_class, _Objects_Local_node, index diff --git a/cpukit/score/src/objectfree.c b/cpukit/score/src/objectfree.c index 68ce0f24f1..8d768b2f55 100644 --- a/cpukit/score/src/objectfree.c +++ b/cpukit/score/src/objectfree.c @@ -46,7 +46,7 @@ void _Objects_Free( if ( information->auto_extend ) { uint32_t block; - block = + block = _Objects_Get_index( the_object->id ) - _Objects_Get_index( information->minimum_id ); block /= information->allocation_size; diff --git a/cpukit/score/src/objectget.c b/cpukit/score/src/objectget.c index def31ca1d4..9b524899e5 100644 --- a/cpukit/score/src/objectget.c +++ b/cpukit/score/src/objectget.c @@ -62,7 +62,7 @@ Objects_Control *_Objects_Get( /* index = (uint16_t ) id; */ #endif - if ( information->maximum >= index ) { + if ( information->maximum >= index ) { _Thread_Disable_dispatch(); if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; diff --git a/cpukit/score/src/objectgetnoprotection.c b/cpukit/score/src/objectgetnoprotection.c index 8dfd5b9617..667eae291c 100644 --- a/cpukit/score/src/objectgetnoprotection.c +++ b/cpukit/score/src/objectgetnoprotection.c @@ -62,7 +62,7 @@ Objects_Control *_Objects_Get_no_protection( /* index = (uint16_t ) id; */ #endif - if ( information->maximum >= index ) { + if ( information->maximum >= index ) { if ( (the_object = information->local_table[ index ]) != NULL ) { *location = OBJECTS_LOCAL; return the_object; @@ -72,7 +72,7 @@ Objects_Control *_Objects_Get_no_protection( } *location = OBJECTS_ERROR; -/* +/* * Not supported for multiprocessing */ #if 0 && defined(RTEMS_MULTIPROCESSING) diff --git a/cpukit/score/src/objectinitializeinformation.c b/cpukit/score/src/objectinitializeinformation.c index 9f9c549933..88555a2944 100644 --- a/cpukit/score/src/objectinitializeinformation.c +++ b/cpukit/score/src/objectinitializeinformation.c @@ -36,7 +36,7 @@ * size - size of this object's control block * is_string - TRUE if names for this object are strings * maximum_name_length - maximum length of each object's name - * When multiprocessing is configured, + * When multiprocessing is configured, * supports_global - TRUE if this is a global object class * extract_callout - pointer to threadq extract callout if MP * @@ -66,8 +66,8 @@ void _Objects_Initialize_information( #endif information->the_api = the_api; - information->the_class = the_class; - information->is_string = is_string; + information->the_class = the_class; + information->is_string = is_string; information->local_table = 0; information->name_table = 0; @@ -124,7 +124,7 @@ void _Objects_Initialize_information( name_length = maximum_name_length; if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) - name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & + name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & ~(OBJECTS_NAME_ALIGNMENT-1); information->name_length = name_length; diff --git a/cpukit/score/src/threadchangepriority.c b/cpukit/score/src/threadchangepriority.c index 581a325183..eda2cd7dfa 100644 --- a/cpukit/score/src/threadchangepriority.c +++ b/cpukit/score/src/threadchangepriority.c @@ -65,13 +65,13 @@ void _Thread_Change_priority( /* * Techically, the prepend should conditional on the thread lowering - * its priority but that does allow cxd2004 of the acvc 2.0.1 to + * its priority but that does allow cxd2004 of the acvc 2.0.1 to * pass with rtems 4.0.0. This should change when gnat redoes its * priority scheme. */ /* if ( prepend_it && - _Thread_Is_executing( the_thread ) && + _Thread_Is_executing( the_thread ) && new_priority >= the_thread->current_priority ) prepend_it = TRUE; */ diff --git a/cpukit/score/src/threadclearstate.c b/cpukit/score/src/threadclearstate.c index ec3a1bc8cf..9833805b8c 100644 --- a/cpukit/score/src/threadclearstate.c +++ b/cpukit/score/src/threadclearstate.c @@ -58,7 +58,7 @@ void _Thread_Clear_state( current_state = the_thread->current_state; if ( current_state & state ) { - current_state = + current_state = the_thread->current_state = _States_Clear( state, current_state ); if ( _States_Is_ready( current_state ) ) { diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c index 879a156660..a0d54e8579 100644 --- a/cpukit/score/src/threadhandler.c +++ b/cpukit/score/src/threadhandler.c @@ -41,11 +41,11 @@ * NOTE: * * On entry, it is assumed all interrupts are blocked and that this - * routine needs to set the initial isr level. This may or may not + * routine needs to set the initial isr level. This may or may not * actually be needed by the context switch routine and as a result * interrupts may already be at there proper level. Either way, * setting the initial isr level properly here is safe. - * + * * Currently this is only really needed for the posix port, * ref: _Context_Switch in unix/cpu.c * @@ -120,7 +120,7 @@ void _Thread_Handler( void ) switch ( executing->Start.prototype ) { case THREAD_START_NUMERIC: - executing->Wait.return_argument = + executing->Wait.return_argument = (*(Thread_Entry_numeric) executing->Start.entry_point)( executing->Start.numeric_argument ); @@ -132,15 +132,15 @@ void _Thread_Handler( void ) ); break; case THREAD_START_BOTH_POINTER_FIRST: - executing->Wait.return_argument = - (*(Thread_Entry_both_pointer_first) executing->Start.entry_point)( + executing->Wait.return_argument = + (*(Thread_Entry_both_pointer_first) executing->Start.entry_point)( executing->Start.pointer_argument, executing->Start.numeric_argument ); break; case THREAD_START_BOTH_NUMERIC_FIRST: - executing->Wait.return_argument = - (*(Thread_Entry_both_numeric_first) executing->Start.entry_point)( + executing->Wait.return_argument = + (*(Thread_Entry_both_numeric_first) executing->Start.entry_point)( executing->Start.numeric_argument, executing->Start.pointer_argument ); @@ -150,7 +150,7 @@ void _Thread_Handler( void ) /* * In the switch above, the return code from the user thread body * was placed in return_argument. This assumed that if it returned - * anything (which is not supporting in all APIs), then it would be + * anything (which is not supporting in all APIs), then it would be * able to fit in a (void *). */ diff --git a/cpukit/score/src/threadinitialize.c b/cpukit/score/src/threadinitialize.c index f7eb5e9ce0..f319fc73d9 100644 --- a/cpukit/score/src/threadinitialize.c +++ b/cpukit/score/src/threadinitialize.c @@ -76,7 +76,7 @@ boolean _Thread_Initialize( actual_stack_size = _Thread_Stack_Allocate( the_thread, actual_stack_size ); - if ( !actual_stack_size ) + if ( !actual_stack_size ) return FALSE; /* stack allocation failed */ stack = the_thread->Start.stack; @@ -139,7 +139,7 @@ boolean _Thread_Initialize( return FALSE; } - } else + } else extensions_area = NULL; the_thread->extensions = (void **) extensions_area; diff --git a/cpukit/score/src/threadqdequeuefifo.c b/cpukit/score/src/threadqdequeuefifo.c index 42a1a33bef..b3a7e10495 100644 --- a/cpukit/score/src/threadqdequeuefifo.c +++ b/cpukit/score/src/threadqdequeuefifo.c @@ -67,7 +67,7 @@ Thread_Control *_Thread_queue_Dequeue_fifo( #endif return the_thread; - } + } switch ( the_thread_queue->sync_state ) { case THREAD_QUEUE_SYNCHRONIZED: diff --git a/cpukit/score/src/threadqenqueuefifo.c b/cpukit/score/src/threadqenqueuefifo.c index 874c29206f..87058b594a 100644 --- a/cpukit/score/src/threadqenqueuefifo.c +++ b/cpukit/score/src/threadqenqueuefifo.c @@ -54,14 +54,14 @@ void _Thread_queue_Enqueue_fifo ( the_thread_queue->sync_state = THREAD_QUEUE_SYNCHRONIZED; switch ( sync_state ) { - case THREAD_QUEUE_SYNCHRONIZED: + case THREAD_QUEUE_SYNCHRONIZED: /* * This should never happen. It indicates that someone did not * enter a thread queue critical section. */ break; - case THREAD_QUEUE_NOTHING_HAPPENED: + case THREAD_QUEUE_NOTHING_HAPPENED: _Chain_Append_unprotected( &the_thread_queue->Queues.Fifo, &the_thread->Object.Node @@ -69,7 +69,7 @@ void _Thread_queue_Enqueue_fifo ( _ISR_Enable( level ); return; - case THREAD_QUEUE_TIMEOUT: + case THREAD_QUEUE_TIMEOUT: the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status; _ISR_Enable( level ); break; diff --git a/cpukit/score/src/threadqextractwithproxy.c b/cpukit/score/src/threadqextractwithproxy.c index 6e5cde1f75..6666b1a71a 100644 --- a/cpukit/score/src/threadqextractwithproxy.c +++ b/cpukit/score/src/threadqextractwithproxy.c @@ -26,7 +26,7 @@ * _Thread_queue_Extract_with_proxy * * This routine extracts the_thread from the_thread_queue - * and ensures that if there is a proxy for this task on + * and ensures that if there is a proxy for this task on * another node, it is also dealt with. * * XXX @@ -48,7 +48,7 @@ boolean _Thread_queue_Extract_with_proxy( the_information = _Objects_Get_information( the_thread->Wait.id ); - proxy_extract_callout = + proxy_extract_callout = (Objects_Thread_queue_Extract_callout) the_information->extract; if ( proxy_extract_callout ) diff --git a/cpukit/score/src/threadready.c b/cpukit/score/src/threadready.c index b35ceb9343..cf80801b20 100644 --- a/cpukit/score/src/threadready.c +++ b/cpukit/score/src/threadready.c @@ -67,7 +67,7 @@ void _Thread_Ready( heir = _Thread_Heir; - if ( !_Thread_Is_executing( heir ) && _Thread_Executing->is_preemptible ) + if ( !_Thread_Is_executing( heir ) && _Thread_Executing->is_preemptible ) _Context_Switch_necessary = TRUE; _ISR_Enable( level ); diff --git a/cpukit/score/src/threadresume.c b/cpukit/score/src/threadresume.c index 25e396d0be..65882d37ca 100644 --- a/cpukit/score/src/threadresume.c +++ b/cpukit/score/src/threadresume.c @@ -70,7 +70,7 @@ void _Thread_Resume( current_state = the_thread->current_state; if ( current_state & STATES_SUSPENDED ) { - current_state = + current_state = the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state); if ( _States_Is_ready( current_state ) ) { diff --git a/cpukit/score/src/threadrotatequeue.c b/cpukit/score/src/threadrotatequeue.c index 762ee57b71..c9ddf2ba8c 100644 --- a/cpukit/score/src/threadrotatequeue.c +++ b/cpukit/score/src/threadrotatequeue.c @@ -38,7 +38,7 @@ * timeslice counter is reset. The heir THREAD will be updated if the * running is also the currently the heir. * - * Input parameters: + * Input parameters: * Priority of the queue we wish to modify. * * Output parameters: NONE @@ -48,7 +48,7 @@ * select heir */ -void _Thread_Rotate_Ready_Queue( +void _Thread_Rotate_Ready_Queue( Priority_Control priority ) { diff --git a/cpukit/score/src/threadstackallocate.c b/cpukit/score/src/threadstackallocate.c index e7247ca82e..74872d91f5 100644 --- a/cpukit/score/src/threadstackallocate.c +++ b/cpukit/score/src/threadstackallocate.c @@ -63,8 +63,8 @@ uint32_t _Thread_Stack_Allocate( * returned the workspace allocate must be directly stored in the * stack control block because it is later used in the free sequence. * - * Thus it is the responsibility of the CPU dependent code to - * get and keep the stack adjust factor, the stack alignment, and + * Thus it is the responsibility of the CPU dependent code to + * get and keep the stack adjust factor, the stack alignment, and * the context initialization sequence in sync. */ diff --git a/cpukit/score/src/threadstartmultitasking.c b/cpukit/score/src/threadstartmultitasking.c index 5b0372f72d..6ce9a0529c 100644 --- a/cpukit/score/src/threadstartmultitasking.c +++ b/cpukit/score/src/threadstartmultitasking.c @@ -50,8 +50,8 @@ void _Thread_Start_multitasking( void ) { /* - * The system is now multitasking and completely initialized. - * This system thread now either "goes away" in a single processor + * The system is now multitasking and completely initialized. + * This system thread now either "goes away" in a single processor * system or "turns into" the server thread in an MP system. */ diff --git a/cpukit/score/src/threadtickletimeslice.c b/cpukit/score/src/threadtickletimeslice.c index 88d523c7dd..db2c9461ef 100644 --- a/cpukit/score/src/threadtickletimeslice.c +++ b/cpukit/score/src/threadtickletimeslice.c @@ -52,7 +52,7 @@ void _Thread_Tickle_timeslice( void ) executing->ticks_executed++; /* - * If the thread is not preemptible or is not ready, then + * If the thread is not preemptible or is not ready, then * just return. */ diff --git a/cpukit/score/src/watchdoginsert.c b/cpukit/score/src/watchdoginsert.c index 17572da47b..c09135289e 100644 --- a/cpukit/score/src/watchdoginsert.c +++ b/cpukit/score/src/watchdoginsert.c @@ -74,11 +74,11 @@ restart: delta_interval -= after->delta_interval; /* - * If you experience problems comment out the _ISR_Flash line. + * If you experience problems comment out the _ISR_Flash line. * 3.2.0 was the first release with this critical section redesigned. * Under certain circumstances, the PREVIOUS critical section algorithm * used around this flash point allowed interrupts to execute - * which violated the design assumptions. The critical section + * which violated the design assumptions. The critical section * mechanism used here WAS redesigned to address this. */ diff --git a/cpukit/score/src/watchdogremove.c b/cpukit/score/src/watchdogremove.c index eb8f40f070..91e4c30340 100644 --- a/cpukit/score/src/watchdogremove.c +++ b/cpukit/score/src/watchdogremove.c @@ -38,7 +38,7 @@ Watchdog_States _Watchdog_Remove( case WATCHDOG_INACTIVE: break; - case WATCHDOG_BEING_INSERTED: + case WATCHDOG_BEING_INSERTED: /* * It is not actually on the chain so just change the state and diff --git a/cpukit/score/src/watchdogtickle.c b/cpukit/score/src/watchdogtickle.c index f75f099e50..9d5060fec4 100644 --- a/cpukit/score/src/watchdogtickle.c +++ b/cpukit/score/src/watchdogtickle.c @@ -39,7 +39,7 @@ void _Watchdog_Tickle( /* * See the comment in watchdoginsert.c and watchdogadjust.c - * about why it's safe not to declare header a pointer to + * about why it's safe not to declare header a pointer to * volatile data - till, 2003/7 */ @@ -69,7 +69,7 @@ void _Watchdog_Tickle( case WATCHDOG_INACTIVE: /* * This state indicates that the watchdog is not on any chain. - * Thus, it is NOT on a chain being tickled. This case should + * Thus, it is NOT on a chain being tickled. This case should * never occur. */ break; |