diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 15:33:28 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-11-29 15:33:28 +0000 |
commit | 44b06ca617a8d8910a308037ebad06876085a6cc (patch) | |
tree | c9bd98f2ad44ad1fbfab11b51f9b09c9d3561d0b /c/src/lib/libbsp/sparc/leon3/startup | |
parent | Whitespace removal. (diff) | |
download | rtems-44b06ca617a8d8910a308037ebad06876085a6cc.tar.bz2 |
Whitespace removal.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/startup')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/startup/bspidle.S | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/startup/bspstart.c | 10 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/startup/setvec.c | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/startup/spurious.c | 26 |
4 files changed, 25 insertions, 25 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S b/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S index e25128c0f6..24be8c0cb0 100644 --- a/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S +++ b/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S @@ -15,9 +15,9 @@ */ - + #include <rtems/asm.h> - + /* LEON specific power-down function */ .align 4 @@ -26,6 +26,6 @@ SYM(bsp_idle_thread): pwdloop: mov %g0, %asr19 ba pwdloop nop - retl + retl nop diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c b/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c index f53c1f4abc..fd44df82cf 100644 --- a/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c +++ b/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c @@ -24,21 +24,21 @@ /* * Tells us if data cache snooping is available - */ + */ int CPU_SPARC_HAS_SNOOPING; /* * set_snooping - * + * * Read the data cache configuration register to determine if * bus snooping is available. This is needed for some drivers so - * that they can select the most efficient copy routines. + * that they can select the most efficient copy routines. * */ -static inline int set_snooping(void) +static inline int set_snooping(void) { - int tmp; + int tmp; asm(" lda [%1] 2, %0 " : "=r"(tmp) : "r"(0xC) diff --git a/c/src/lib/libbsp/sparc/leon3/startup/setvec.c b/c/src/lib/libbsp/sparc/leon3/startup/setvec.c index b48b3e050d..c7b8af6616 100644 --- a/c/src/lib/libbsp/sparc/leon3/startup/setvec.c +++ b/c/src/lib/libbsp/sparc/leon3/startup/setvec.c @@ -21,10 +21,10 @@ * http://www.rtems.com/license/LICENSE. * * Ported to LEON implementation of the SPARC by On-Line Applications - * Research Corporation (OAR) under contract to the European Space + * Research Corporation (OAR) under contract to the European Space * Agency (ESA). * - * LEON modifications of respective RTEMS file: COPYRIGHT (c) 1995. + * LEON modifications of respective RTEMS file: COPYRIGHT (c) 1995. * European Space Agency. * * $Id$ @@ -44,13 +44,13 @@ rtems_isr_entry set_vector( /* returns old vector */ if ( type ) rtems_interrupt_catch( handler, vector, &previous_isr ); - else + else _CPU_ISR_install_raw_handler( vector, handler, (void *)&previous_isr ); real_trap = SPARC_REAL_TRAP_NUMBER( vector ); if ( LEON_INT_TRAP( real_trap ) ) { - + source = LEON_TRAP_SOURCE( real_trap ); LEON_Clear_interrupt( source ); diff --git a/c/src/lib/libbsp/sparc/leon3/startup/spurious.c b/c/src/lib/libbsp/sparc/leon3/startup/spurious.c index 3b0cab8e85..62d38d3f0c 100644 --- a/c/src/lib/libbsp/sparc/leon3/startup/spurious.c +++ b/c/src/lib/libbsp/sparc/leon3/startup/spurious.c @@ -1,11 +1,11 @@ /* * LEON 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. * - * Developed as part of the port of RTEMS to the LEON implementation - * of the SPARC by On-Line Applications Research Corporation (OAR) + * Developed as part of the port of RTEMS to the LEON 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. @@ -46,34 +46,34 @@ rtems_isr bsp_spurious_handler( * First the ones defined by the basic architecture */ - case 0x00: + case 0x00: printk( "reset\n" ); break; - case 0x01: + case 0x01: printk( "instruction access exception\n" ); break; - case 0x02: + case 0x02: printk( "illegal instruction\n" ); break; - case 0x03: + case 0x03: printk( "privileged instruction\n" ); break; - case 0x04: + case 0x04: printk( "fp disabled\n" ); break; - case 0x07: + case 0x07: printk( "memory address not aligned\n" ); break; - case 0x08: + case 0x08: printk( "fp exception\n" ); break; - case 0x09: + case 0x09: printk( "Unexpected trap (0x%2d) at address XXX\n", real_trap /* XXX FIXME isf->tpc */ ); break; - case 0x0A: + case 0x0A: printk( "tag overflow\n" ); break; @@ -150,7 +150,7 @@ void bsp_spurious_initialize() */ if (( trap == 5 || trap == 6 ) || - (( trap >= 0x11 ) && ( trap <= 0x1f )) || + (( trap >= 0x11 ) && ( trap <= 0x1f )) || (( trap >= 0x70 ) && ( trap <= 0x83 ))) continue; |