diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-16 21:51:30 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-16 21:51:30 +0000 |
commit | 0fdc09947386f72e261d0fc474e35e7bfa560dc4 (patch) | |
tree | 3057e0e8a3de5f7ec37e5a58d1d562bb6fccabb5 /c/src/lib/libbsp/sh/simsh4 | |
parent | Remove stray white spaces. (diff) | |
download | rtems-0fdc09947386f72e261d0fc474e35e7bfa560dc4.tar.bz2 |
Remove stray white spaces.
Diffstat (limited to 'c/src/lib/libbsp/sh/simsh4')
-rw-r--r-- | c/src/lib/libbsp/sh/simsh4/clock/ckinit.c | 22 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/simsh4/console/console.c | 14 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/simsh4/include/bsp.h | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/simsh4/include/coverhd.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/simsh4/start/start.S | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/simsh4/startup/bspstart.c | 24 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/simsh4/startup/hw_init.c | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/simsh4/timer/timer.c | 2 |
8 files changed, 41 insertions, 41 deletions
diff --git a/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c b/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c index 3712597b34..c434f6892e 100644 --- a/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c +++ b/c/src/lib/libbsp/sh/simsh4/clock/ckinit.c @@ -29,7 +29,7 @@ volatile uint32_t Clock_driver_ticks; /* * These are set by clock driver during its init */ - + rtems_device_major_number rtems_clock_major = ~0; rtems_device_minor_number rtems_clock_minor; @@ -39,8 +39,8 @@ static void set_clock_period(uint32_t period) { asm volatile ("\tmov %0,r0\n" - "\ttrapa\t#4\n" - : + "\ttrapa\t#4\n" + : : "r" (period) : "r0" ); } @@ -103,15 +103,15 @@ Install_clock(rtems_isr_entry clock_isr) if (BSP_Configuration.ticks_per_timeslice) { rtems_isr_entry old_isr; - period = Cpu_table.clicks_per_second / + period = Cpu_table.clicks_per_second / BSP_Configuration.ticks_per_timeslice; - + /* Configure timer interrupts */ set_clock_period(period); - + /* Register the interrupt handler */ rtems_interrupt_catch(clock_isr, CLOCK_VECTOR, &old_isr); - + /* Register the driver exit procedure so we can shutdown */ atexit(Clock_exit); } @@ -137,14 +137,14 @@ Clock_initialize(rtems_device_major_number major, void *pargp) { Install_clock (Clock_isr); - + /* Make major/minor avail to others such as shared memory driver */ rtems_clock_major = major; rtems_clock_minor = minor; - + return RTEMS_SUCCESSFUL; } - + /* Clock_control -- * I/O control (IOCTL) function for Clock driver. At this moment this @@ -174,7 +174,7 @@ Clock_control(rtems_device_major_number major, * This is hokey, but until we get a defined interface * to do this, it will just be this simple... */ - if (args->command == rtems_build_name('I', 'S', 'R', ' ')) + if (args->command == rtems_build_name('I', 'S', 'R', ' ')) { Clock_isr(CLOCK_VECTOR); } diff --git a/c/src/lib/libbsp/sh/simsh4/console/console.c b/c/src/lib/libbsp/sh/simsh4/console/console.c index a8905b286a..f6d12c20d2 100644 --- a/c/src/lib/libbsp/sh/simsh4/console/console.c +++ b/c/src/lib/libbsp/sh/simsh4/console/console.c @@ -164,7 +164,7 @@ console_first_open(int major, int minor, void *arg) { return RTEMS_INVALID_NUMBER; /* Single console supported */ } - + return RTEMS_SUCCESSFUL; } @@ -251,8 +251,8 @@ console_initialize(rtems_device_major_number major, * RETURNS: * RTEMS error code */ -rtems_device_driver -console_open(rtems_device_major_number major, +rtems_device_driver +console_open(rtems_device_major_number major, rtems_device_minor_number minor, void *arg) { @@ -281,10 +281,10 @@ console_open(rtems_device_major_number major, { case CONSOLE_MODE_RAW: return RTEMS_SUCCESSFUL; - + case CONSOLE_MODE_INT: return rtems_termios_open(major, minor, arg, &intr_callbacks); - + case CONSOLE_MODE_POLL: return rtems_termios_open(major, minor, arg, &poll_callbacks); @@ -305,7 +305,7 @@ console_open(rtems_device_major_number major, * RETURNS: * RTEMS error code */ -rtems_device_driver +rtems_device_driver console_close(rtems_device_major_number major, rtems_device_minor_number minor, void *arg) @@ -415,7 +415,7 @@ rtems_device_driver console_control(rtems_device_major_number major, rtems_device_minor_number minor, void *arg) -{ +{ if (console_mode != CONSOLE_MODE_RAW) { return rtems_termios_ioctl (arg); diff --git a/c/src/lib/libbsp/sh/simsh4/include/bsp.h b/c/src/lib/libbsp/sh/simsh4/include/bsp.h index 7d89f5bec1..4b9205b4b5 100644 --- a/c/src/lib/libbsp/sh/simsh4/include/bsp.h +++ b/c/src/lib/libbsp/sh/simsh4/include/bsp.h @@ -15,7 +15,7 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * + * * * COPYRIGHT (c) 1998-2001. * On-Line Applications Research Corporation (OAR). @@ -116,7 +116,7 @@ extern uint32_t WorkSpaceEnd ; extern void *CPU_Interrupt_stack_low ; extern void *CPU_Interrupt_stack_high ; - + /* miscellaneous stuff assumed to exist */ extern rtems_configuration_table BSP_Configuration; @@ -137,8 +137,8 @@ extern void bsp_cleanup( void ); #define RAMDISK_DRIVER_TABLE_ENTRY \ { ramdisk_initialize, ramdisk_open, ramdisk_close, \ ramdisk_read, ramdisk_write, ramdisk_control } - - + + /* * NOTE: Use the standard Clock driver entry */ diff --git a/c/src/lib/libbsp/sh/simsh4/include/coverhd.h b/c/src/lib/libbsp/sh/simsh4/include/coverhd.h index d695503506..d51bcc7033 100644 --- a/c/src/lib/libbsp/sh/simsh4/include/coverhd.h +++ b/c/src/lib/libbsp/sh/simsh4/include/coverhd.h @@ -18,7 +18,7 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * + * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. diff --git a/c/src/lib/libbsp/sh/simsh4/start/start.S b/c/src/lib/libbsp/sh/simsh4/start/start.S index 27e13a5fb6..0466ded3e5 100644 --- a/c/src/lib/libbsp/sh/simsh4/start/start.S +++ b/c/src/lib/libbsp/sh/simsh4/start/start.S @@ -19,7 +19,7 @@ * TGA Technologies, Inc. * 100 Pinnacle Way, Suite 140 * Norcross, GA 30071 U.S.A. - * + * * * This modified file may be copied and distributed in accordance * the above-referenced license. It is provided for critique and @@ -81,7 +81,7 @@ SYM (start): mov.l initial_fpscr_k,r0 lds r0,fpscr - ! call the mainline + ! call the mainline mov #0,r4 ! argc mov.l main_k,r0 jsr @r0 @@ -107,7 +107,7 @@ ___trap34: !ret: rts nop - + ! .align 2 !perrno: ! .long _errno @@ -122,7 +122,7 @@ _vbr_base_k: .long SYM(_vbr_base) stack_k: - .long SYM(stack) + .long SYM(stack) edata_k: .long SYM(edata) end_k: diff --git a/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c b/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c index 1a8a434a68..f0b9f04ff8 100644 --- a/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c +++ b/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c @@ -26,11 +26,11 @@ #include <bsp.h> #include <rtems/libio.h> - + #include <rtems/libcsupport.h> - + #include <string.h> - + /* * The original table from the application and our copy of it with * some changes. @@ -49,7 +49,7 @@ char *rtems_progname; /* * Use the shared implementations of the following routines */ - + void bsp_postdriver_hook(void); void bsp_libc_init( void *, uint32_t, int ); @@ -65,11 +65,11 @@ void bsp_libc_init( void *, uint32_t, int ); * not yet initialized. * */ - + void bsp_pretasking_hook(void) { bsp_libc_init(&HeapStart, (char *)&HeapEnd - (char *)&HeapStart, 0); - + #ifdef RTEMS_DEBUG rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); #endif @@ -84,10 +84,10 @@ void bsp_pretasking_hook(void) void bsp_start(void) { /* - For real boards you need to setup the hardware + For real boards you need to setup the hardware and need to copy the vector table from rom to ram. - Depending on the board this can ether be done from inside the rom + Depending on the board this can ether be done from inside the rom startup code, rtems startup code or here. */ @@ -111,10 +111,10 @@ void bsp_start(void) */ BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ; - BSP_Configuration.work_space_size = - (uint32_t) &WorkSpaceEnd - + BSP_Configuration.work_space_size = + (uint32_t) &WorkSpaceEnd - (uint32_t) &WorkSpaceStart ; - + /* * initialize the CPU table for this BSP */ @@ -124,7 +124,7 @@ void bsp_start(void) _CPU_Interrupt_stack_high = &CPU_Interrupt_stack_high ; /* This isn't used anywhere */ - Cpu_table.interrupt_stack_size = + Cpu_table.interrupt_stack_size = (uint32_t) (&CPU_Interrupt_stack_high) - (uint32_t) (&CPU_Interrupt_stack_low) ; #endif diff --git a/c/src/lib/libbsp/sh/simsh4/startup/hw_init.c b/c/src/lib/libbsp/sh/simsh4/startup/hw_init.c index 283897128e..7cc392a508 100644 --- a/c/src/lib/libbsp/sh/simsh4/startup/hw_init.c +++ b/c/src/lib/libbsp/sh/simsh4/startup/hw_init.c @@ -52,6 +52,6 @@ early_hw_init (void) * RETURNS: * none */ -void bsp_hw_init (void) +void bsp_hw_init (void) { } diff --git a/c/src/lib/libbsp/sh/simsh4/timer/timer.c b/c/src/lib/libbsp/sh/simsh4/timer/timer.c index d0084fcb54..236f4fd226 100644 --- a/c/src/lib/libbsp/sh/simsh4/timer/timer.c +++ b/c/src/lib/libbsp/sh/simsh4/timer/timer.c @@ -13,7 +13,7 @@ * found in the file LICENSE in this distribution or at * * http://www.rtems.com/license/LICENSE. - * + * * $Id$ */ |