diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ppcn_60x/startup')
5 files changed, 33 insertions, 33 deletions
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/bspstart.c index 5e34429c09..ca313e001b 100644 --- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/bspstart.c @@ -27,7 +27,7 @@ * the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. * - * $Id: + * $Id: */ #include <string.h> @@ -61,7 +61,7 @@ static unsigned long ulBusSpeed[] = { * The original table from the application and our copy of it with * some changes. */ - + extern rtems_configuration_table Configuration; rtems_configuration_table BSP_Configuration; @@ -142,13 +142,13 @@ void bsp_std_close( void ) close(stdout_fd); close(stderr_fd); } - + /* * bsp_predriver_hook * * Before drivers are setup. - */ + */ void bsp_predriver_hook(void) { /* bsp_spurious_initialize; ??*/ @@ -266,7 +266,7 @@ void bsp_start( void ) * of work space from the last physical address on the CPU board. */ - work_space_start = + work_space_start = (unsigned char *)ulMemorySize - BSP_Configuration.work_space_size; if ( work_space_start <= (unsigned char *)&end ) { @@ -282,7 +282,7 @@ void bsp_start( void ) Cpu_table.exceptions_in_RAM = TRUE; Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ - Cpu_table.predriver_hook = bsp_predriver_hook; + Cpu_table.predriver_hook = bsp_predriver_hook; Cpu_table.postdriver_hook = bsp_postdriver_hook; Cpu_table.do_zero_of_workspace = TRUE; Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/genpvec.c b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/genpvec.c index a7a6f3dacc..98348b1020 100644 --- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/genpvec.c +++ b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/genpvec.c @@ -32,8 +32,8 @@ #include <rtems/chain.h> #include <assert.h> -/* - * Proto types for this file +/* + * Proto types for this file */ rtems_isr external_exception_ISR ( @@ -49,8 +49,8 @@ rtems_isr external_exception_ISR ( uint8_t ucMaster8259Mask; uint8_t ucSlave8259Mask; -/* - * Structure to for one of possible multiple interrupt handlers for +/* + * Structure to for one of possible multiple interrupt handlers for * a given interrupt. */ typedef struct @@ -65,7 +65,7 @@ typedef struct * handlers at a later time. */ EE_ISR_Type ISR_Nodes [NUM_LIRQ_HANDLERS]; - uint16_t Nodes_Used; + uint16_t Nodes_Used; Chain_Control ISR_Array [NUM_LIRQ]; void initialize_external_exception_vector() @@ -139,7 +139,7 @@ void initialize_external_exception_vector() ELCRM_INT5_LVL); break; } - + case SYS_TYPE_PPC2: case SYS_TYPE_PPC2a: case SYS_TYPE_PPC4: @@ -158,18 +158,18 @@ void initialize_external_exception_vector() } } - /* - * Install external_exception_ISR () as the handler for + /* + * Install external_exception_ISR () as the handler for * the General Purpose Interrupt. */ - status = rtems_interrupt_catch( external_exception_ISR, + status = rtems_interrupt_catch( external_exception_ISR, PPC_IRQ_EXTERNAL, (rtems_isr_entry *) &previous_isr ); } /* - * This routine installs one of multiple ISRs for the general purpose + * This routine installs one of multiple ISRs for the general purpose * inerrupt. */ void set_EE_vector( @@ -200,7 +200,7 @@ void set_EE_vector( * Doing things in this order makes them more atomic */ - Nodes_Used++; + Nodes_Used++; index = Nodes_Used - 1; @@ -215,13 +215,13 @@ void set_EE_vector( En_Ext_Interrupt(vector); } -/* +/* * This interrupt service routine is called for an External Exception. */ rtems_isr external_exception_ISR ( rtems_vector_number vector /* IN */ ) -{ +{ uint16_t index; uint8_t ucISr; EE_ISR_Type *node; diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/setvec.c b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/setvec.c index 240d4577c0..435da9dc02 100644 --- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/setvec.c +++ b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/setvec.c @@ -19,7 +19,7 @@ * the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. * - * $Id: + * $Id: */ #include <rtems.h> @@ -27,8 +27,8 @@ /* - * This routine installs vector number vector. - * + * This routine installs vector number vector. + * */ rtems_isr_entry set_vector( /* returns old vector */ rtems_isr_entry handler, /* isr routine */ @@ -39,7 +39,7 @@ rtems_isr_entry set_vector( /* returns old vector */ rtems_isr_entry previous_isr; rtems_status_code status; - /* + /* * vectors greater than PPC_IRQ_LAST are handled by the General purpose * interupt handler. (8259) */ diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c index 3ead7a7892..6a1a427a0f 100644 --- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c +++ b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c @@ -1,12 +1,12 @@ /* * PPCn_60x Spurious Trap Handler * - * This is just enough of a trap handler to let us know what + * This is just enough of a trap handler to let us know what * the likely source of the trap was. * * Based upon the SPARC ERC32 version which was developed as - * part of the port of RTEMS to the ERC32 implementation - * of the SPARC by On-Line Applications Research Corporation (OAR) + * part of the port of RTEMS to the ERC32 implementation + * of the SPARC by On-Line Applications Research Corporation (OAR) * under contract to the European Space Agency (ESA). * * COPYRIGHT (c) 1995. European Space Agency. @@ -41,7 +41,7 @@ rtems_isr bsp_spurious_handler( DEBUG_puts( "Spurious Trap" ); - + switch ( trap ) { case PPC_IRQ_SYSTEM_RESET: DEBUG_puts( "System reset" ); @@ -88,7 +88,7 @@ rtems_isr bsp_spurious_handler( #if defined(ppc403) || defined(ppc405) case PPC_IRQ_CRIT : - DEBUG_puts( "Critical Error "); + DEBUG_puts( "Critical Error "); break; case PPC_IRQ_PIT: DEBUG_puts( "Prog. Interval Timer " ); @@ -104,13 +104,13 @@ rtems_isr bsp_spurious_handler( break; #elif defined(ppc601) -#error "Please fill in names. " +#error "Please fill in names. " case PPC_IRQ_TRACE : DEBUG_puts( "0x02000" ); break; #elif defined(ppc603) -#error "Please fill in names. " +#error "Please fill in names. " case PPC_IRQ_TRANS_MISS : DEBUG_puts( "0x1000" ); break; @@ -145,7 +145,7 @@ rtems_isr bsp_spurious_handler( break; #elif defined(mpc604) -#error "Please fill in names. " +#error "Please fill in names. " case PPC_IRQ_ADDR_BRK: DEBUG_puts( "0x1300" ); break; @@ -184,7 +184,7 @@ void bsp_spurious_initialize() * trap 0 which we will use as a shutdown. */ - set_vector( bsp_spurious_handler, trap, 1 ); + set_vector( bsp_spurious_handler, trap, 1 ); } set_vector( bsp_stub_handler, PPC_IRQ_DECREMENTER, 1 ); diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/swap.c b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/swap.c index 5ea1c39b0c..68072fe502 100644 --- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/swap.c +++ b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/swap.c @@ -37,7 +37,7 @@ inline unsigned int Swap32( "rlwimi %0,%1,24,16,23;" "rlwimi %0,%1,8,8,15;" "rlwimi %0,%1,24,0,7;" : - + "=&r" ((ulSwapped)) : "r" ((ulValue)) ); |