From 7ded4e37a31ddf20c2720730b34b0597f3d2d457 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 15 Apr 2004 04:00:25 +0000 Subject: Remove unnecessary white spaces. --- cpukit/itron/src/can_wup.c | 1 - cpukit/itron/src/chg_pri.c | 6 ++---- cpukit/itron/src/cre_mbf.c | 4 ++-- cpukit/itron/src/cre_mbx.c | 2 +- cpukit/itron/src/cre_tsk.c | 14 +++++--------- cpukit/itron/src/del_mbf.c | 2 +- cpukit/itron/src/del_sem.c | 4 ++-- cpukit/itron/src/del_tsk.c | 3 +-- cpukit/itron/src/dis_dsp.c | 4 +--- cpukit/itron/src/ena_dsp.c | 1 - cpukit/itron/src/eventflags.c | 15 +++++++-------- cpukit/itron/src/exd_tsk.c | 3 +-- cpukit/itron/src/ext_tsk.c | 2 +- cpukit/itron/src/fmempool.c | 13 ++++++------- cpukit/itron/src/frsm_tsk.c | 6 ++---- cpukit/itron/src/get_tid.c | 3 +-- cpukit/itron/src/itronintr.c | 3 +-- cpukit/itron/src/itronsem.c | 1 - cpukit/itron/src/itrontime.c | 33 ++++++++++++++++----------------- cpukit/itron/src/mbox.c | 12 ++++++------ cpukit/itron/src/msgbuffer.c | 19 +++++++++---------- cpukit/itron/src/network.c | 1 - cpukit/itron/src/port.c | 15 +++++++-------- cpukit/itron/src/preq_sem.c | 2 +- cpukit/itron/src/psnd_mbf.c | 2 +- cpukit/itron/src/rcv_mbx.c | 2 +- cpukit/itron/src/ref_mbf.c | 14 +++++++------- cpukit/itron/src/ref_mbx.c | 3 +-- cpukit/itron/src/ref_sem.c | 9 ++++----- cpukit/itron/src/ref_tsk.c | 12 ++++-------- cpukit/itron/src/rel_wai.c | 7 ++----- cpukit/itron/src/rot_rdq.c | 8 +++----- cpukit/itron/src/rsm_tsk.c | 5 ++--- cpukit/itron/src/snd_mbf.c | 2 +- cpukit/itron/src/snd_mbx.c | 2 +- cpukit/itron/src/sta_tsk.c | 14 +++++--------- cpukit/itron/src/sus_tsk.c | 11 ++--------- cpukit/itron/src/sysmgmt.c | 1 - cpukit/itron/src/task.c | 8 ++++---- cpukit/itron/src/ter_tsk.c | 19 ++++++------------- cpukit/itron/src/trcv_mbf.c | 8 ++++---- cpukit/itron/src/trcv_mbx.c | 4 ++-- cpukit/itron/src/tslp_tsk.c | 2 -- cpukit/itron/src/twai_sem.c | 4 ++-- cpukit/itron/src/vmempool.c | 13 ++++++------- cpukit/itron/src/wai_sem.c | 2 +- cpukit/itron/src/wup_tsk.c | 1 - 47 files changed, 132 insertions(+), 190 deletions(-) (limited to 'cpukit/itron/src') diff --git a/cpukit/itron/src/can_wup.c b/cpukit/itron/src/can_wup.c index d769430ddf..4a7efc639d 100644 --- a/cpukit/itron/src/can_wup.c +++ b/cpukit/itron/src/can_wup.c @@ -50,4 +50,3 @@ ER can_wup( _ITRON_return_errorno( E_OK ); } - diff --git a/cpukit/itron/src/chg_pri.c b/cpukit/itron/src/chg_pri.c index efbd18ec71..a548535db4 100644 --- a/cpukit/itron/src/chg_pri.c +++ b/cpukit/itron/src/chg_pri.c @@ -34,13 +34,13 @@ ER chg_pri( { register Thread_Control *the_thread; Objects_Locations location; - Priority_Control new_priority; + Priority_Control new_priority; the_thread = _ITRON_Task_Get( tskid, &location ); switch ( location ) { case OBJECTS_REMOTE: case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); + return _ITRON_Task_Clarify_get_id_error( tskid ); case OBJECTS_LOCAL: if (_States_Is_dormant( the_thread->current_state )) @@ -66,5 +66,3 @@ ER chg_pri( _ITRON_return_errorno( E_OK ); } - - diff --git a/cpukit/itron/src/cre_mbf.c b/cpukit/itron/src/cre_mbf.c index 1cf088155a..0275be2cc5 100644 --- a/cpukit/itron/src/cre_mbf.c +++ b/cpukit/itron/src/cre_mbf.c @@ -48,7 +48,7 @@ ER cre_mbf( if (pk_cmbf->bufsz < 0 || pk_cmbf->maxmsz < 0) return E_PAR; - + if (pk_cmbf->bufsz < pk_cmbf->maxmsz) return E_PAR; @@ -74,7 +74,7 @@ ER cre_mbf( _ITRON_Objects_Open( &_ITRON_Message_buffer_Information, &the_message_buffer->Object ); - + /* * If multiprocessing were supported, this is where we would announce * the existence of the semaphore to the rest of the system. diff --git a/cpukit/itron/src/cre_mbx.c b/cpukit/itron/src/cre_mbx.c index abc2cd1bfe..bc4d766814 100644 --- a/cpukit/itron/src/cre_mbx.c +++ b/cpukit/itron/src/cre_mbx.c @@ -22,7 +22,7 @@ /* * cre_mbx - Create Mailbox - * + * * Creates a Mailbox according to the following spec: * * ------Parameters------------------------- diff --git a/cpukit/itron/src/cre_tsk.c b/cpukit/itron/src/cre_tsk.c index 44dd1b9731..85a24e52d9 100644 --- a/cpukit/itron/src/cre_tsk.c +++ b/cpukit/itron/src/cre_tsk.c @@ -35,12 +35,12 @@ ER cre_tsk( { register Thread_Control *the_thread; boolean status; - Priority_Control core_priority; + Priority_Control core_priority; /* * Validate Parameters. */ - + if ( pk_ctsk == NULL ) return E_PAR; @@ -62,11 +62,11 @@ ER cre_tsk( return E_PAR; if ( pk_ctsk->stksz < 0 ) return E_PAR; - + /* * Disable dispatching. */ - + _Thread_Disable_dispatch(); /* @@ -84,7 +84,7 @@ ER cre_tsk( core_priority = _ITRON_Task_Priority_to_Core( pk_ctsk->itskpri ); status = _Thread_Initialize( &_ITRON_Task_Information, - the_thread, + the_thread, NULL, pk_ctsk->stksz, #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) @@ -118,7 +118,3 @@ ER cre_tsk( _ITRON_return_errorno( E_OK ); } - - - - diff --git a/cpukit/itron/src/del_mbf.c b/cpukit/itron/src/del_mbf.c index 81996703b2..0fea912942 100644 --- a/cpukit/itron/src/del_mbf.c +++ b/cpukit/itron/src/del_mbf.c @@ -53,6 +53,6 @@ ER del_mbf( _Thread_Enable_dispatch(); return E_OK; } - + return E_OK; } diff --git a/cpukit/itron/src/del_sem.c b/cpukit/itron/src/del_sem.c index 55e6d55d69..94368c4a41 100644 --- a/cpukit/itron/src/del_sem.c +++ b/cpukit/itron/src/del_sem.c @@ -31,13 +31,13 @@ ER del_sem( { ITRON_Semaphore_Control *the_semaphore; Objects_Locations location; - + the_semaphore = _ITRON_Semaphore_Get( semid, &location ); switch ( location ) { case OBJECTS_REMOTE: /* Multiprocessing not supported */ case OBJECTS_ERROR: return _ITRON_Semaphore_Clarify_get_id_error( semid ); - + case OBJECTS_LOCAL: _CORE_semaphore_Flush( &the_semaphore->semaphore, diff --git a/cpukit/itron/src/del_tsk.c b/cpukit/itron/src/del_tsk.c index 04c05d6ca3..9d1ddb72b5 100644 --- a/cpukit/itron/src/del_tsk.c +++ b/cpukit/itron/src/del_tsk.c @@ -40,7 +40,7 @@ ER del_tsk( switch ( location ) { case OBJECTS_REMOTE: case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); + return _ITRON_Task_Clarify_get_id_error( tskid ); case OBJECTS_LOCAL: @@ -56,4 +56,3 @@ ER del_tsk( _ITRON_return_errorno( result ); } - diff --git a/cpukit/itron/src/dis_dsp.c b/cpukit/itron/src/dis_dsp.c index 00db32ce0c..0f1561abaa 100644 --- a/cpukit/itron/src/dis_dsp.c +++ b/cpukit/itron/src/dis_dsp.c @@ -32,11 +32,9 @@ ER dis_dsp( void ) { /* * Disable dispatch for protection - */ + */ _Thread_Disable_dispatch(); return E_OK; } - - diff --git a/cpukit/itron/src/ena_dsp.c b/cpukit/itron/src/ena_dsp.c index 03d424d418..da25d99206 100644 --- a/cpukit/itron/src/ena_dsp.c +++ b/cpukit/itron/src/ena_dsp.c @@ -34,4 +34,3 @@ ER ena_dsp( void ) return E_OK; } - diff --git a/cpukit/itron/src/eventflags.c b/cpukit/itron/src/eventflags.c index e3e01a70fd..11039cc78d 100644 --- a/cpukit/itron/src/eventflags.c +++ b/cpukit/itron/src/eventflags.c @@ -17,9 +17,9 @@ #include -/* +/* * _ITRON_Eventflags_Manager_initialization - * + * * This routine initializes all event flags manager related data structures. * * Input parameters: @@ -30,14 +30,14 @@ void _ITRON_Eventflags_Manager_initialization( uint32_t maximum_eventflags -) +) { _Objects_Initialize_information( &_ITRON_Eventflags_Information, /* object information table */ OBJECTS_ITRON_API, /* object API */ OBJECTS_ITRON_EVENTFLAGS, /* object class */ maximum_eventflags, /* maximum objects of this class */ - sizeof( ITRON_Eventflags_Control ), + sizeof( ITRON_Eventflags_Control ), /* size of this object's control block */ FALSE, /* TRUE if names for this object are strings */ ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ @@ -47,14 +47,14 @@ void _ITRON_Eventflags_Manager_initialization( NULL /* Proxy extraction support callout */ #endif ); - + /* * Register the MP Process Packet routine. * * NOTE: No MP Support YET in RTEMS ITRON implementation. */ - -} + +} /* * cre_flg - Create Eventflag @@ -157,4 +157,3 @@ ER ref_flg( { return E_OK; } - diff --git a/cpukit/itron/src/exd_tsk.c b/cpukit/itron/src/exd_tsk.c index d7ed8a0961..c99282f4d8 100644 --- a/cpukit/itron/src/exd_tsk.c +++ b/cpukit/itron/src/exd_tsk.c @@ -41,7 +41,6 @@ void exd_tsk( void ) _Thread_Set_state( _Thread_Executing, STATES_DORMANT ); _ITRON_Delete_task( _Thread_Executing ); - + _Thread_Enable_dispatch(); } - diff --git a/cpukit/itron/src/ext_tsk.c b/cpukit/itron/src/ext_tsk.c index 941874dfde..20b83ff471 100644 --- a/cpukit/itron/src/ext_tsk.c +++ b/cpukit/itron/src/ext_tsk.c @@ -42,5 +42,5 @@ void ext_tsk( void ) _Thread_Set_state( _Thread_Executing, STATES_DORMANT ); _Thread_Reset( _Thread_Executing, NULL, 0 ); - _Thread_Enable_dispatch(); + _Thread_Enable_dispatch(); } diff --git a/cpukit/itron/src/fmempool.c b/cpukit/itron/src/fmempool.c index b756d52479..567b7cb358 100644 --- a/cpukit/itron/src/fmempool.c +++ b/cpukit/itron/src/fmempool.c @@ -17,9 +17,9 @@ #include -/* +/* * _ITRON_Fixed_memory_pool_Manager_initialization - * + * * This routine initializes all fixed memory pool manager related * data structures. * @@ -31,7 +31,7 @@ void _ITRON_Fixed_memory_pool_Manager_initialization( uint32_t maximum_fixed_memory_pools -) +) { _Objects_Initialize_information( &_ITRON_Fixed_memory_pool_Information, /* object information table */ @@ -48,14 +48,14 @@ void _ITRON_Fixed_memory_pool_Manager_initialization( NULL /* Proxy extraction support callout */ #endif ); - + /* * Register the MP Process Packet routine. * * NOTE: No MP Support YET in RTEMS ITRON implementation. */ - -} + +} /* * cre_mpf - Create Fixed-Size Memorypool @@ -140,4 +140,3 @@ ER ref_mpf( { return E_OK; } - diff --git a/cpukit/itron/src/frsm_tsk.c b/cpukit/itron/src/frsm_tsk.c index ffa9751be2..7df43bce44 100644 --- a/cpukit/itron/src/frsm_tsk.c +++ b/cpukit/itron/src/frsm_tsk.c @@ -39,7 +39,7 @@ ER frsm_tsk( switch ( location ) { case OBJECTS_REMOTE: case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); + return _ITRON_Task_Clarify_get_id_error( tskid ); case OBJECTS_LOCAL: if ( _Thread_Is_executing( the_thread ) ) @@ -47,7 +47,7 @@ ER frsm_tsk( if (_States_Is_dormant( the_thread->current_state )) _ITRON_return_errorno( E_OBJ ); - + if ( ! _States_Is_suspended(the_thread->current_state) ) _ITRON_return_errorno( E_OK ); @@ -58,5 +58,3 @@ ER frsm_tsk( _ITRON_return_errorno( E_OK ); } - - diff --git a/cpukit/itron/src/get_tid.c b/cpukit/itron/src/get_tid.c index baf7609921..e455179fe1 100644 --- a/cpukit/itron/src/get_tid.c +++ b/cpukit/itron/src/get_tid.c @@ -35,8 +35,7 @@ ER get_tid( * This does not support multiprocessing. The id handling will have * to be enhanced to support multiprocessing. */ - + *p_tskid = _Objects_Get_index( _Thread_Executing->Object.id ); return E_OK; } - diff --git a/cpukit/itron/src/itronintr.c b/cpukit/itron/src/itronintr.c index 4de5cfa13c..13520cf5f0 100644 --- a/cpukit/itron/src/itronintr.c +++ b/cpukit/itron/src/itronintr.c @@ -77,7 +77,7 @@ ER dis_int( } /* - * ena_int - Enable Interrupt + * ena_int - Enable Interrupt */ ER ena_int( @@ -108,4 +108,3 @@ ER ref_iXX( { return E_OK; } - diff --git a/cpukit/itron/src/itronsem.c b/cpukit/itron/src/itronsem.c index f77cf90e76..755b3fe840 100644 --- a/cpukit/itron/src/itronsem.c +++ b/cpukit/itron/src/itronsem.c @@ -58,4 +58,3 @@ void _ITRON_Semaphore_Manager_initialization( */ } - diff --git a/cpukit/itron/src/itrontime.c b/cpukit/itron/src/itrontime.c index 3a9fa961c2..a2971dbdb5 100644 --- a/cpukit/itron/src/itrontime.c +++ b/cpukit/itron/src/itrontime.c @@ -36,7 +36,7 @@ void converTime(SYSTIME ms, TOD_Control *time) millisecond = 0; #endif } - + /* * set_tim - Set System Clock @@ -48,10 +48,10 @@ ER set_tim( { Watchdog_Interval temp; /* an integer in seconds after conversion from SYSTIME */ TOD_Control the_tod; - + /* convert *pk_tim which is 48 bits integer in binary into an ordinary integer in milliseconds */ - + /* XXX */ temp = 0; if(temp > 0) { _Thread_Disable_dispatch(); @@ -117,7 +117,7 @@ ER def_cyc( #if 0 Watchdog_Interval timeInterval; #endif - + /* XXX */ object = 0; if ( pk_dcyc->cycatr != TA_HLNG) return E_RSATR; @@ -131,7 +131,7 @@ ER def_cyc( cycno, pk_dcyc->exinf); _Watchdog_Deactivate(object); - + return E_OK; } @@ -145,7 +145,7 @@ ER act_cyc( ) { Watchdog_Control *object; - + if(cycact != TCY_OFF || cycact != TCY_ON) return E_PAR; @@ -153,9 +153,9 @@ ER act_cyc( if( object->Object_ID != cycno) return E_NOEXS; #endif - + _Watchdog_Activate(object); - + return E_OK; } @@ -176,8 +176,8 @@ ER ref_cyc( Watchdog_Control *object; #endif -/* XXX */ pk_dcyc = 0; - +/* XXX */ pk_dcyc = 0; + /* XXX will to use a "get" routine to map from id to object pointer */ /* XXX and the object pointer should be of type specific to this manager */ #if 0 @@ -191,11 +191,11 @@ ER ref_cyc( #if 0 pk_rcyc->lfttim = pk_dcyc->cyctim - timeElapse_since_actCyclic; #endif - + return E_OK; } else - return E_NOEXS; + return E_NOEXS; } /* @@ -206,11 +206,11 @@ ER def_alm( HNO almno, T_DALM *pk_dalm ) -{ +{ #if 0 Objects_Control *objectAlrm; Watchdog_Interval timeInterval; - + timeInterval = pk_dalm->almtim / 1000; (void) _Watchdog_Remove(&objectAlrm); _Watchdog_Initialize( @@ -221,7 +221,7 @@ ER def_alm( _Watchdong_Insert_seconds(objectAlrm,timeInterval); _Thread_Enable_dispatch(); #endif - + return E_OK; } @@ -234,7 +234,7 @@ ER ref_alm( HNO almno ) { - + return E_OK; } @@ -245,4 +245,3 @@ ER ref_alm( void ret_tmr( void ) { } - diff --git a/cpukit/itron/src/mbox.c b/cpukit/itron/src/mbox.c index 67d240e970..19a4ca1257 100644 --- a/cpukit/itron/src/mbox.c +++ b/cpukit/itron/src/mbox.c @@ -20,9 +20,9 @@ #include #include -/* +/* * _ITRON_Mailbox_Manager_initialization - * + * * This routine initializes all mailboxes manager related data structures. * * Input parameters: @@ -33,7 +33,7 @@ void _ITRON_Mailbox_Manager_initialization( uint32_t maximum_mailboxes -) +) { _Objects_Initialize_information( &_ITRON_Mailbox_Information, /* object information table */ @@ -49,11 +49,11 @@ void _ITRON_Mailbox_Manager_initialization( NULL /* Proxy extraction support callout */ #endif ); - + /* * Register the MP Process Packet routine. * * NOTE: No MP Support YET in RTEMS ITRON implementation. */ - -} + +} diff --git a/cpukit/itron/src/msgbuffer.c b/cpukit/itron/src/msgbuffer.c index 7292d69fed..fdf714ec1f 100644 --- a/cpukit/itron/src/msgbuffer.c +++ b/cpukit/itron/src/msgbuffer.c @@ -20,11 +20,11 @@ #include #include -/* +/* * _ITRON_Message_buffer_Manager_initialization - * + * * This routine initializes all message buffer manager related data - * structures. + * structures. * * Input parameters: * maximum_message_buffers - maximum configured message buffers @@ -34,7 +34,7 @@ void _ITRON_Message_buffer_Manager_initialization( uint32_t maximum_message_buffers -) +) { _Objects_Initialize_information( &_ITRON_Message_buffer_Information, /* object information table */ @@ -42,20 +42,19 @@ void _ITRON_Message_buffer_Manager_initialization( OBJECTS_ITRON_MESSAGE_BUFFERS, /* object class */ maximum_message_buffers, /* maximum objects of this class */ sizeof( ITRON_Message_buffer_Control ), - /* size of this object's control block */ - FALSE, /* TRUE if names for this object are strings */ - ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ + /* size of this object's control block */ + FALSE, /* TRUE if names for this object are strings */ + ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ #if defined(RTEMS_MULTIPROCESSING) , FALSE, /* TRUE if this is a global object class */ NULL /* Proxy extraction support callout */ #endif ); - + /* * Register the MP Process Packet routine. * * NOTE: No MP Support YET in RTEMS ITRON implementation. */ -} - +} diff --git a/cpukit/itron/src/network.c b/cpukit/itron/src/network.c index 11cd63ba20..2922d3af9e 100644 --- a/cpukit/itron/src/network.c +++ b/cpukit/itron/src/network.c @@ -69,4 +69,3 @@ ER nget_ver( { return E_OK; } - diff --git a/cpukit/itron/src/port.c b/cpukit/itron/src/port.c index 63327abfdd..7f5693c385 100644 --- a/cpukit/itron/src/port.c +++ b/cpukit/itron/src/port.c @@ -17,9 +17,9 @@ #include -/* +/* * _ITRON_Port_Manager_initialization - * + * * This routine initializes all ports manager related data structures. * * Input parameters: @@ -30,7 +30,7 @@ void _ITRON_Port_Manager_initialization( uint32_t maximum_ports -) +) { _Objects_Initialize_information( &_ITRON_Port_Information, /* object information table */ @@ -46,14 +46,14 @@ void _ITRON_Port_Manager_initialization( NULL /* Proxy extraction support callout */ #endif ); - + /* * Register the MP Process Packet routine. * * NOTE: No MP Support YET in RTEMS ITRON implementation. */ - -} + +} /* * cre_por - Create Port for Rendezvous @@ -79,7 +79,7 @@ ER del_por( } /* - * cal_por - Call Port for Rendezvous Poll + * cal_por - Call Port for Rendezvous Poll */ ER cal_por( @@ -209,4 +209,3 @@ ER ref_por( { return E_OK; } - diff --git a/cpukit/itron/src/preq_sem.c b/cpukit/itron/src/preq_sem.c index d8bf014e9a..e68f92b5de 100644 --- a/cpukit/itron/src/preq_sem.c +++ b/cpukit/itron/src/preq_sem.c @@ -28,6 +28,6 @@ ER preq_sem( ID semid ) -{ +{ return twai_sem( semid, TMO_POL ); } diff --git a/cpukit/itron/src/psnd_mbf.c b/cpukit/itron/src/psnd_mbf.c index 94dd994aec..bac72feb2a 100644 --- a/cpukit/itron/src/psnd_mbf.c +++ b/cpukit/itron/src/psnd_mbf.c @@ -30,5 +30,5 @@ ER psnd_mbf( INT msgsz ) { - return tsnd_mbf( mbfid, msg, msgsz, TMO_POL ); + return tsnd_mbf( mbfid, msg, msgsz, TMO_POL ); } diff --git a/cpukit/itron/src/rcv_mbx.c b/cpukit/itron/src/rcv_mbx.c index d9e4f4b76a..dde0f2697e 100644 --- a/cpukit/itron/src/rcv_mbx.c +++ b/cpukit/itron/src/rcv_mbx.c @@ -21,7 +21,7 @@ #include /* - * rcv_msg - Receive Message from Mailbox + * rcv_msg - Receive Message from Mailbox */ ER rcv_msg( diff --git a/cpukit/itron/src/ref_mbf.c b/cpukit/itron/src/ref_mbf.c index 00bbcb5ddd..f7f076e65b 100644 --- a/cpukit/itron/src/ref_mbf.c +++ b/cpukit/itron/src/ref_mbf.c @@ -32,16 +32,16 @@ ER ref_mbf( ITRON_Message_buffer_Control *the_message_buffer; Objects_Locations location; CORE_message_queue_Control *the_core_msgq; - + if ( !pk_rmbf ) return E_PAR; /* XXX check this error code */ the_message_buffer = _ITRON_Message_buffer_Get( mbfid, &location ); - switch ( location ) { + switch ( location ) { case OBJECTS_REMOTE: /* Multiprocessing not supported */ case OBJECTS_ERROR: return _ITRON_Message_buffer_Clarify_get_id_error( mbfid ); - + case OBJECTS_LOCAL: the_core_msgq = &the_message_buffer->message_queue; @@ -55,13 +55,13 @@ ER ref_mbf( pk_rmbf->msgsz = ((CORE_message_queue_Buffer_control *) the_core_msgq->Pending_messages.first)->Contents.size; } - + /* * Fill in the size of free buffer */ pk_rmbf->frbufsz = - (the_core_msgq->maximum_pending_messages - + (the_core_msgq->maximum_pending_messages - the_core_msgq->number_of_pending_messages) * the_core_msgq->maximum_message_size; @@ -70,7 +70,7 @@ ER ref_mbf( * Fill in whether or not there is a waiting task */ - if ( !_Thread_queue_First(&the_core_msgq->Wait_queue ) ) + if ( !_Thread_queue_First(&the_core_msgq->Wait_queue ) ) pk_rmbf->wtsk = FALSE; else pk_rmbf->wtsk = TRUE; @@ -78,6 +78,6 @@ ER ref_mbf( pk_rmbf->stsk = FALSE; _Thread_Enable_dispatch(); return E_OK; - } + } return E_OK; } diff --git a/cpukit/itron/src/ref_mbx.c b/cpukit/itron/src/ref_mbx.c index 2f469987ec..6e100e011e 100644 --- a/cpukit/itron/src/ref_mbx.c +++ b/cpukit/itron/src/ref_mbx.c @@ -47,7 +47,7 @@ ER ref_mbx( pending = &the_mailbox->message_queue.Pending_messages; if ( _Chain_Is_empty( pending ) ) pk_rmbx->pk_msg = NULL; - else + else pk_rmbx->pk_msg = (T_MSG *) pending->first; /* @@ -63,4 +63,3 @@ ER ref_mbx( } _ITRON_return_errorno( E_OK ); } - diff --git a/cpukit/itron/src/ref_sem.c b/cpukit/itron/src/ref_sem.c index 250f6c20e4..9a46cca38d 100644 --- a/cpukit/itron/src/ref_sem.c +++ b/cpukit/itron/src/ref_sem.c @@ -32,16 +32,16 @@ ER ref_sem( { ITRON_Semaphore_Control *the_semaphore; Objects_Locations location; - + if ( !pk_rsem ) return E_PAR; /* XXX check this error code */ the_semaphore = _ITRON_Semaphore_Get( semid, &location ); - switch ( location ) { + switch ( location ) { case OBJECTS_REMOTE: /* Multiprocessing not supported */ case OBJECTS_ERROR: return _ITRON_Semaphore_Clarify_get_id_error( semid ); - + case OBJECTS_LOCAL: /* * Fill in the current semaphore count @@ -60,7 +60,6 @@ ER ref_sem( _Thread_Enable_dispatch(); return E_OK; - } + } return E_OK; } - diff --git a/cpukit/itron/src/ref_tsk.c b/cpukit/itron/src/ref_tsk.c index e01c2489e2..6b951a5c8a 100644 --- a/cpukit/itron/src/ref_tsk.c +++ b/cpukit/itron/src/ref_tsk.c @@ -35,7 +35,7 @@ ER ref_tsk( { register Thread_Control *the_thread; Objects_Locations location; - Priority_Control core_priority; + Priority_Control core_priority; if (!pk_rtsk) return E_PAR; @@ -45,7 +45,7 @@ ER ref_tsk( case OBJECTS_REMOTE: case OBJECTS_ERROR: return _ITRON_Task_Clarify_get_id_error( tskid ); - + case OBJECTS_LOCAL: if ( location != OBJECTS_LOCAL ) @@ -61,7 +61,7 @@ ER ref_tsk( pk_rtsk->wupcnt = 0; pk_rtsk->suscnt = the_thread->suspend_count; pk_rtsk->tskatr = 0; /* XXX - Not correctly implemented */ - pk_rtsk->task = (FP) the_thread->Start.entry_point; + pk_rtsk->task = (FP) the_thread->Start.entry_point; core_priority = the_thread->Start.initial_priority; pk_rtsk->itskpri = _ITRON_Task_Core_to_Priority( core_priority ); pk_rtsk->stksz = the_thread->Start.Initial_stack.size; @@ -83,7 +83,7 @@ ER ref_tsk( if ( the_thread == _Thread_Executing ) pk_rtsk->tskstat |= TTS_RUN; if ( _States_Is_ready(the_thread->current_state) ) - pk_rtsk->tskstat |= TTS_RDY; + pk_rtsk->tskstat |= TTS_RDY; if ( _States_Is_dormant( the_thread->current_state) ) pk_rtsk->tskstat |= TTS_DMT; if ( _States_Is_suspended(the_thread->current_state) ) @@ -97,7 +97,3 @@ ER ref_tsk( _ITRON_return_errorno( E_OK ); } - - - - diff --git a/cpukit/itron/src/rel_wai.c b/cpukit/itron/src/rel_wai.c index b63691e915..49b247d660 100644 --- a/cpukit/itron/src/rel_wai.c +++ b/cpukit/itron/src/rel_wai.c @@ -38,7 +38,7 @@ ER rel_wai( switch ( location ) { case OBJECTS_REMOTE: case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); + return _ITRON_Task_Clarify_get_id_error( tskid ); case OBJECTS_LOCAL: /* @@ -48,8 +48,5 @@ ER rel_wai( break; } - _ITRON_return_errorno( E_OK ); + _ITRON_return_errorno( E_OK ); } - - - diff --git a/cpukit/itron/src/rot_rdq.c b/cpukit/itron/src/rot_rdq.c index 6309184b60..80e9e5c95e 100644 --- a/cpukit/itron/src/rot_rdq.c +++ b/cpukit/itron/src/rot_rdq.c @@ -32,7 +32,7 @@ ER rot_rdq( ) { PRI priority; - + if (( tskpri <= 0 ) || ( tskpri >= 256 )) return E_PAR; @@ -47,11 +47,9 @@ ER rot_rdq( if ( priority == tskpri ) _Thread_Yield_processor(); else { - _Thread_Rotate_Ready_Queue( _ITRON_Task_Core_to_Priority( tskpri ) ); + _Thread_Rotate_Ready_Queue( _ITRON_Task_Core_to_Priority( tskpri ) ); } _Thread_Enable_dispatch(); - + return E_OK; } - - diff --git a/cpukit/itron/src/rsm_tsk.c b/cpukit/itron/src/rsm_tsk.c index 234282a180..a41fbfe5e6 100644 --- a/cpukit/itron/src/rsm_tsk.c +++ b/cpukit/itron/src/rsm_tsk.c @@ -39,7 +39,7 @@ ER rsm_tsk( switch ( location ) { case OBJECTS_REMOTE: case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); + return _ITRON_Task_Clarify_get_id_error( tskid ); case OBJECTS_LOCAL: @@ -56,6 +56,5 @@ ER rsm_tsk( break; } - _ITRON_return_errorno( E_OK ); + _ITRON_return_errorno( E_OK ); } - diff --git a/cpukit/itron/src/snd_mbf.c b/cpukit/itron/src/snd_mbf.c index f9df6f6b53..3c46aad75e 100644 --- a/cpukit/itron/src/snd_mbf.c +++ b/cpukit/itron/src/snd_mbf.c @@ -30,5 +30,5 @@ ER snd_mbf( INT msgsz ) { - return tsnd_mbf( mbfid, msg, msgsz, TMO_FEVR ); + return tsnd_mbf( mbfid, msg, msgsz, TMO_FEVR ); } diff --git a/cpukit/itron/src/snd_mbx.c b/cpukit/itron/src/snd_mbx.c index 6d1abb5e41..f257ab3b41 100644 --- a/cpukit/itron/src/snd_mbx.c +++ b/cpukit/itron/src/snd_mbx.c @@ -64,7 +64,7 @@ ER snd_msg( break; } - _ITRON_return_errorno( + _ITRON_return_errorno( _ITRON_Mailbox_Translate_core_message_queue_return_code( msg_status ) ); } diff --git a/cpukit/itron/src/sta_tsk.c b/cpukit/itron/src/sta_tsk.c index 017346a952..a1beeade23 100644 --- a/cpukit/itron/src/sta_tsk.c +++ b/cpukit/itron/src/sta_tsk.c @@ -41,7 +41,7 @@ ER sta_tsk( switch ( location ) { case OBJECTS_REMOTE: case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); + return _ITRON_Task_Clarify_get_id_error( tskid ); case OBJECTS_LOCAL: @@ -56,18 +56,14 @@ ER sta_tsk( 0 /* unused */ ); - /* - * This error can not happen entry_point is checked in create. - if ( !status ) + /* + * This error can not happen entry_point is checked in create. + if ( !status ) _ITRON_return_errorno( E_OBJ ); */ break; } - _ITRON_return_errorno( E_OK ); + _ITRON_return_errorno( E_OK ); } - - - - diff --git a/cpukit/itron/src/sus_tsk.c b/cpukit/itron/src/sus_tsk.c index 2fb5d39bf0..7261a171df 100644 --- a/cpukit/itron/src/sus_tsk.c +++ b/cpukit/itron/src/sus_tsk.c @@ -44,7 +44,7 @@ ER sus_tsk( switch ( location ) { case OBJECTS_REMOTE: case OBJECTS_ERROR: - return _ITRON_Task_Clarify_get_id_error( tskid ); + return _ITRON_Task_Clarify_get_id_error( tskid ); case OBJECTS_LOCAL: @@ -58,12 +58,5 @@ ER sus_tsk( break; } - _ITRON_return_errorno( E_OK ); + _ITRON_return_errorno( E_OK ); } - - - - - - - diff --git a/cpukit/itron/src/sysmgmt.c b/cpukit/itron/src/sysmgmt.c index 2023dea099..b997c3fd74 100644 --- a/cpukit/itron/src/sysmgmt.c +++ b/cpukit/itron/src/sysmgmt.c @@ -73,4 +73,3 @@ ER def_exc( { return E_OK; } - diff --git a/cpukit/itron/src/task.c b/cpukit/itron/src/task.c index 7190a2c343..2fcb3a3a0a 100644 --- a/cpukit/itron/src/task.c +++ b/cpukit/itron/src/task.c @@ -66,7 +66,7 @@ User_extensions_routine _ITRON_Task_Delete_extension( ) { (void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_ITRON ] ); - + deleted->API_Extensions[ THREAD_API_ITRON ] = NULL; } @@ -95,7 +95,7 @@ void _ITRON_Task_Initialize_user_tasks( void ) return; for ( index=0 ; index < maximum ; index++ ) { - + return_value = cre_tsk( user_tasks[ index ].id, &user_tasks[ index ].attributes @@ -136,8 +136,8 @@ ER _ITRON_Delete_task( } /* - * At this point in time, the ITRON API does not need any other - * extensions. See the POSIX and RTEMS API extensions for + * At this point in time, the ITRON API does not need any other + * extensions. See the POSIX and RTEMS API extensions for * examples of how they can be used. */ diff --git a/cpukit/itron/src/ter_tsk.c b/cpukit/itron/src/ter_tsk.c index d2c86a4e6b..f3111f5d46 100644 --- a/cpukit/itron/src/ter_tsk.c +++ b/cpukit/itron/src/ter_tsk.c @@ -37,29 +37,22 @@ ER ter_tsk( the_thread = _ITRON_Task_Get( tskid, &location ); switch ( location ) { - case OBJECTS_REMOTE: + case OBJECTS_REMOTE: case OBJECTS_ERROR: return _ITRON_Task_Clarify_get_id_error( tskid ); - + case OBJECTS_LOCAL: - + if ( _Thread_Is_executing( the_thread ) ) _ITRON_return_errorno( E_OBJ ); - + if ( _States_Is_dormant( the_thread->current_state ) ) _ITRON_return_errorno( E_OBJ ); _Thread_Restart( the_thread, NULL, 0 ); _Thread_Set_state( the_thread, STATES_DORMANT ); break; - } + } - _ITRON_return_errorno( E_OK ); + _ITRON_return_errorno( E_OK ); } - - - - - - - diff --git a/cpukit/itron/src/trcv_mbf.c b/cpukit/itron/src/trcv_mbf.c index c53604fbe5..9e05334433 100644 --- a/cpukit/itron/src/trcv_mbf.c +++ b/cpukit/itron/src/trcv_mbf.c @@ -42,16 +42,16 @@ ER trcv_mbf( wait = FALSE; } else { wait = TRUE; - if (tmout != TMO_FEVR) + if (tmout != TMO_FEVR) interval = TOD_MILLISECONDS_TO_TICKS(tmout); } - if (wait && _ITRON_Is_in_non_task_state() ) + if (wait && _ITRON_Is_in_non_task_state() ) return E_CTX; if (!p_msgsz || !msg || tmout <= -2) return E_PAR; - + the_message_buffer = _ITRON_Message_buffer_Get(mbfid, &location); switch (location) { case OBJECTS_REMOTE: @@ -68,7 +68,7 @@ ER trcv_mbf( interval ); _Thread_Enable_dispatch(); - status = (CORE_message_queue_Status)_Thread_Executing->Wait.return_code; + status = (CORE_message_queue_Status)_Thread_Executing->Wait.return_code; return _ITRON_Message_buffer_Translate_core_message_buffer_return_code(status); } diff --git a/cpukit/itron/src/trcv_mbx.c b/cpukit/itron/src/trcv_mbx.c index 0ffd2e6912..62a3098140 100644 --- a/cpukit/itron/src/trcv_mbx.c +++ b/cpukit/itron/src/trcv_mbx.c @@ -65,12 +65,12 @@ ER trcv_msg( ppk_msg, &size, wait, - interval + interval ); break; } - _ITRON_return_errorno( + _ITRON_return_errorno( _ITRON_Mailbox_Translate_core_message_queue_return_code( _Thread_Executing->Wait.return_code ) ); } diff --git a/cpukit/itron/src/tslp_tsk.c b/cpukit/itron/src/tslp_tsk.c index abb12f84ed..54fe83cf45 100644 --- a/cpukit/itron/src/tslp_tsk.c +++ b/cpukit/itron/src/tslp_tsk.c @@ -34,5 +34,3 @@ ER tslp_tsk( { return E_OK; } - - diff --git a/cpukit/itron/src/twai_sem.c b/cpukit/itron/src/twai_sem.c index 2ad18fbbc5..133d0647be 100644 --- a/cpukit/itron/src/twai_sem.c +++ b/cpukit/itron/src/twai_sem.c @@ -35,7 +35,7 @@ ER twai_sem( Watchdog_Interval interval; boolean wait; CORE_semaphore_Status status; - + interval = 0; if ( tmout == TMO_POL ) { wait = FALSE; @@ -47,7 +47,7 @@ ER twai_sem( if ( wait && _ITRON_Is_in_non_task_state() ) return E_CTX; - + the_semaphore = _ITRON_Semaphore_Get( semid, &location ); switch ( location ) { case OBJECTS_REMOTE: /* Multiprocessing not supported */ diff --git a/cpukit/itron/src/vmempool.c b/cpukit/itron/src/vmempool.c index db68237c96..916c9d5e61 100644 --- a/cpukit/itron/src/vmempool.c +++ b/cpukit/itron/src/vmempool.c @@ -19,7 +19,7 @@ /* * _ITRON_Variable_memory_pool_Manager_initialization - * + * * This routine initializes all variable memory pool manager related * data structures. * @@ -31,7 +31,7 @@ void _ITRON_Variable_memory_pool_Manager_initialization( uint32_t maximum_variable_memory_pools -) +) { _Objects_Initialize_information( &_ITRON_Variable_memory_pool_Information, /* object information table */ @@ -47,15 +47,15 @@ void _ITRON_Variable_memory_pool_Manager_initialization( FALSE, /* TRUE if this is a global object class */ NULL /* Proxy extraction support callout */ #endif - ); - + ); + /* * Register the MP Process Packet routine. * * NOTE: No MP Support YET in RTEMS ITRON implementation. */ - -} + +} /* * cre_mpl - Create Variable-Size Memorypool @@ -143,4 +143,3 @@ ER ref_mpl( { return E_OK; } - diff --git a/cpukit/itron/src/wai_sem.c b/cpukit/itron/src/wai_sem.c index 6da8e8a870..7c4364b594 100644 --- a/cpukit/itron/src/wai_sem.c +++ b/cpukit/itron/src/wai_sem.c @@ -20,7 +20,7 @@ #include /* - * wai_sem - Wait on Semaphore + * wai_sem - Wait on Semaphore * * This function implements the ITRON 3.0 wai_sem() service. */ diff --git a/cpukit/itron/src/wup_tsk.c b/cpukit/itron/src/wup_tsk.c index 0884038fde..bec817c0ba 100644 --- a/cpukit/itron/src/wup_tsk.c +++ b/cpukit/itron/src/wup_tsk.c @@ -34,4 +34,3 @@ ER wup_tsk( { return E_OK; } - -- cgit v1.2.3