diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-21 10:43:04 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-21 10:43:04 +0000 |
commit | 6128a4aa5e791ed4e0a655bfd346a52d92da7883 (patch) | |
tree | af53ca3f67ce405b6fbc6c98399c8e0c87e01a9e /c/src/lib/libbsp/mips/genmongoosev | |
parent | 2004-04-20 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-6128a4aa5e791ed4e0a655bfd346a52d92da7883.tar.bz2 |
Remove stray white spaces.
Diffstat (limited to 'c/src/lib/libbsp/mips/genmongoosev')
6 files changed, 50 insertions, 50 deletions
diff --git a/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c b/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c index b89cbb622f..1ae41b405a 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c +++ b/c/src/lib/libbsp/mips/genmongoosev/console/conscfg.c @@ -13,8 +13,8 @@ * $Id$ */ -#include <bsp.h> - +#include <bsp.h> + #include <libchip/serial.h> #include <libchip/mg5uart.h> @@ -88,6 +88,6 @@ rtems_device_minor_number Console_Port_Minor; #include <rtems/bspIo.h> void GENMG5_output_char(char c) { write( 2, &c, 1 ); } - + BSP_output_char_function_type BSP_output_char = GENMG5_output_char; BSP_polling_getchar_function_type BSP_poll_char = NULL; diff --git a/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h b/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h index fb62ae37b5..3beb8dc513 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h +++ b/c/src/lib/libbsp/mips/genmongoosev/include/bsp.h @@ -45,7 +45,7 @@ extern "C" { -/* +/* * assertSoftwareInt defined in vectorisrs.c the prototype is here so * userspace code can get to it directly. * */ @@ -83,26 +83,26 @@ extern void assertSoftwareInterrupt(uint32_t); #if 1 #define Install_tm27_vector( handler ) \ - (void) set_vector( handler, MONGOOSEV_IRQ_SOFTWARE_1, 1 ); + (void) set_vector( handler, MONGOOSEV_IRQ_SOFTWARE_1, 1 ); #define Cause_tm27_intr() assertSoftwareInterrupt(0); -#define Clear_tm27_intr() +#define Clear_tm27_intr() #define Lower_tm27_intr() #else #define Install_tm27_vector( handler ) \ - (void) set_vector( handler, MONGOOSEV_IRQ_TIMER1, 1 ); + (void) set_vector( handler, MONGOOSEV_IRQ_TIMER1, 1 ); #define Cause_tm27_intr() \ do { \ ; \ } while(0) -#define Clear_tm27_intr() +#define Clear_tm27_intr() #define Lower_tm27_intr() #endif @@ -120,7 +120,7 @@ extern rtems_configuration_table BSP_Configuration; /* * NOTE: Use the standard Console driver entry */ - + /* * NOTE: Use the standard Clock driver entry */ @@ -130,7 +130,7 @@ extern rtems_configuration_table BSP_Configuration; void bsp_cleanup( void ); rtems_isr_entry set_vector( rtems_isr_entry, rtems_vector_number, int ); - + #ifdef __cplusplus } #endif diff --git a/c/src/lib/libbsp/mips/genmongoosev/start/start.S b/c/src/lib/libbsp/mips/genmongoosev/start/start.S index 1647d4d34a..5c997d7449 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/start/start.S +++ b/c/src/lib/libbsp/mips/genmongoosev/start/start.S @@ -43,7 +43,7 @@ #include "mg5.h" - + #ifdef __mips16 /* This file contains 32 bit assembly code. */ .set nomips16 @@ -136,14 +136,14 @@ _branch: or t0,t2 jal t0 nop - - - + + + li k0,0 li k1,0 - + move t1,a1 nop li t2,0xa0000000 /* lower limit of kseg1 */ @@ -152,13 +152,13 @@ _branch: subu t0,t1,t2 srl t0,31 /* shift high bit down to bit 0 */ bnez t0,1f /* booting from below kseg1 */ - + subu t0,t3,t1 srl t0,31 /* shift high bit down to bit 0 */ bnez t0,1f /* booting from above kseg1 */ - - + + /* ** Call IcacheFlush. Masking used to call EEPROM address of IcacheFlush. Label is RAM label. */ @@ -211,7 +211,7 @@ _branch: nop -1: +1: /* ** Print ' RTEMS b'. Show that we are booting. */ @@ -431,7 +431,7 @@ _initialize_rtems: la a0,_promIcache sw k0,0(a0) nop - + la a0,_promDcache sw k1,0(a0) nop @@ -801,34 +801,34 @@ _cpuinit: - - + + /********************************************************************** ** ** Keep the boot-time address of the I & D cache reset code for -** later on. If we need to clear the I/D caches, we <must> run from -** non-cached memory. This means the relocated versions are useless, +** later on. If we need to clear the I/D caches, we <must> run from +** non-cached memory. This means the relocated versions are useless, ** thankfully they are quite small. */ - + _promIcache: .word 0 _promDcache: .word 0 - + .globl promCopyIcacheFlush .ent promCopyIcacheFlush .set noreorder -promCopyIcacheFlush: +promCopyIcacheFlush: move a0,ra - + la t1,_promIcache lw t0,0(t1) nop beqz t0,1f - + jal t0 nop @@ -836,20 +836,20 @@ promCopyIcacheFlush: nop .set reorder .end promCopyIcacheFlush - - + + .globl promCopyDcacheFlush .ent promCopyDcacheFlush .set noreorder -promCopyDcacheFlush: +promCopyDcacheFlush: move a0,ra - + la t1,_promDcache lw t0,0(t1) nop beqz t0,1f - + jal t0 nop @@ -857,11 +857,11 @@ promCopyDcacheFlush: nop .set reorder .end promCopyDcacheFlush - - - - + + + + /******************************************************************************* ** Function Name: IcacheFlush ** Description: This functions flushes the on chip icache. @@ -879,7 +879,7 @@ IcacheFlush: li t0, M_BIU lw t1, 0(t0) - /* + /* ** Isolate I cache */ mfc0 t3, C0_SR /* Read Status Register */ diff --git a/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c b/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c index 05eedcb8b2..649cd64a0e 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c +++ b/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c @@ -91,7 +91,7 @@ void bsp_start( void ) extern int WorkspaceBase; extern void mips_install_isr_entries(); extern void mips_gdb_stub_install(void); - + /* Configure Number of Register Caches */ Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ @@ -142,7 +142,7 @@ void bsp_start( void ) /* mips_set_sr( (SR_CU0 | SR_CU1 | 0xA400) ); */ /* to start up, only enable coprocessor 0 & timer int. per-task - ** processor settings will be applied as they are created, this + ** processor settings will be applied as they are created, this ** is just to configure the processor for startup */ mips_set_sr( (SR_CU0 | 0x400) ); @@ -166,7 +166,7 @@ void clear_cache( void ) /* - + //Structure filled in by get_mem_info. diff --git a/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c b/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c index 2b36051053..4c6ee61736 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c +++ b/c/src/lib/libbsp/mips/genmongoosev/startup/gdb-support.c @@ -70,7 +70,7 @@ int mg5rdbgOpenGDBuart(int breakoninit) /* set up vectoring for gdb */ mips_gdb_stub_install(-1); - /* + /* this is a rough approximation of our memory map. Yours is probably different. It only needs to be sufficient for the stub to know what it can and can't do and where. @@ -81,10 +81,10 @@ int mg5rdbgOpenGDBuart(int breakoninit) gdbstub_add_memsegment(0x81500000, 0x81ffffff, MEMOPT_READABLE | MEMOPT_WRITEABLE ); - if( breakoninit ) + if( breakoninit ) { printf("gdbstub: GDB stub entered, connect host debugger now\n"); - /* + /* break to gdb. We'll wait there for the operator to get their gdb going, then they can 'continue' or do whatever. */ @@ -145,10 +145,10 @@ void putDebugChar (char c) * configure dcic for trapping, user & kernel mode, PC traps and enable it * dcic = DCIC_TR | DCIC_UD | DCIC_KD | DCIC_PCE | DCIC_DE; * dcic = DCIC_UD | DCIC_KD | DCIC_PCE | DCIC_DE; * - mips_set_dcic( dcic ); + mips_set_dcic( dcic ); mips_get_bpcrm( reg, mask ); - mips_get_dcic( dcic ); + mips_get_dcic( dcic ); * printf("bpc is %08X, bpc_mask is %08X, dcic is now %08X\n", reg, mask, dcic ); * } */ diff --git a/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c b/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c index 6b6b99413c..24cf366dfb 100644 --- a/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c +++ b/c/src/lib/libbsp/mips/genmongoosev/timer/timer.c @@ -1,4 +1,4 @@ -/* +/* * This file implements a benchmark timer using a MONGOOSE-V timer. * * COPYRIGHT (c) 1989-2001. @@ -68,8 +68,8 @@ int Read_timer() tcr = MONGOOSEV_READ_REGISTER( TIMER_BASE, MONGOOSEV_TIMER_CONTROL_REGISTER ); - MONGOOSEV_WRITE_REGISTER( TIMER_BASE, - MONGOOSEV_TIMER_CONTROL_REGISTER, + MONGOOSEV_WRITE_REGISTER( TIMER_BASE, + MONGOOSEV_TIMER_CONTROL_REGISTER, 0 ); if ( tcr & MONGOOSEV_TIMER_CONTROL_TIMEOUT ) |