summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-30 05:09:41 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-30 05:09:41 +0000
commit359e5374164ccb2a66833354b412a859c144ea2f (patch)
tree6f065d7d6247bc255f43ddb0152fc26c50bd4f87 /c/src/lib/libbsp
parentWhitespace removal. (diff)
downloadrtems-359e5374164ccb2a66833354b412a859c144ea2f.tar.bz2
Whitespace removal.
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r--c/src/lib/libbsp/i386/i386ex/timer/timer.c2
-rw-r--r--c/src/lib/libbsp/i386/pc386/clock/ckinit.c18
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/console.c4
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/fb_vga.c12
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c6
-rw-r--r--c/src/lib/libbsp/i386/pc386/ide/ide.c52
-rw-r--r--c/src/lib/libbsp/i386/pc386/ide/idecfg.c10
-rw-r--r--c/src/lib/libbsp/i386/pc386/start/start.S6
-rw-r--r--c/src/lib/libbsp/i386/pc386/startup/bspgetworkarea.c2
-rw-r--r--c/src/lib/libbsp/i386/pc386/startup/ldsegs.S4
-rw-r--r--c/src/lib/libbsp/m32c/m32cbsp/start/start.S20
-rw-r--r--c/src/lib/libbsp/m32c/m32cbsp/startup/crtn.S18
-rw-r--r--c/src/lib/libbsp/m32c/m32cbsp/timer/timer.c10
-rw-r--r--c/src/lib/libbsp/m32r/m32rsim/start/start.S2
-rw-r--r--c/src/lib/libbsp/nios2/nios2_iss/console/console.c6
-rw-r--r--c/src/lib/libbsp/nios2/nios2_iss/timer/timer.c6
-rw-r--r--c/src/lib/libbsp/sh/gensh1/start/start.S2
-rw-r--r--c/src/lib/libbsp/sh/gensh2/start/start.S2
-rw-r--r--c/src/lib/libbsp/sh/gensh4/start/start.S2
-rw-r--r--c/src/lib/libbsp/sh/shsim/start/start.S4
-rw-r--r--c/src/lib/libbsp/shared/bspclean.c2
-rw-r--r--c/src/lib/libbsp/shared/bspgetworkarea.c2
-rw-r--r--c/src/lib/libbsp/shared/bspinit.c8
-rw-r--r--c/src/lib/libbsp/shared/include/irq-config.h2
-rw-r--r--c/src/lib/libbsp/shared/include/irq-generic.h2
-rw-r--r--c/src/lib/libbsp/shared/include/stackalloc.h2
-rw-r--r--c/src/lib/libbsp/shared/src/irq-generic.c2
27 files changed, 104 insertions, 104 deletions
diff --git a/c/src/lib/libbsp/i386/i386ex/timer/timer.c b/c/src/lib/libbsp/i386/i386ex/timer/timer.c
index 96f013f9eb..00ff157628 100644
--- a/c/src/lib/libbsp/i386/i386ex/timer/timer.c
+++ b/c/src/lib/libbsp/i386/i386ex/timer/timer.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
diff --git a/c/src/lib/libbsp/i386/pc386/clock/ckinit.c b/c/src/lib/libbsp/i386/pc386/clock/ckinit.c
index 328844ed6c..ebc935b0e7 100644
--- a/c/src/lib/libbsp/i386/pc386/clock/ckinit.c
+++ b/c/src/lib/libbsp/i386/pc386/clock/ckinit.c
@@ -84,7 +84,7 @@ uint32_t bsp_clock_nanoseconds_since_last_tick_tsc(void)
/******
* Get nanoseconds using Pentium-compatible TSC register
******/
-
+
uint64_t diff_nsec;
diff_nsec = rdtsc() - pc586_tsc_at_tick;
@@ -106,7 +106,7 @@ uint32_t bsp_clock_nanoseconds_since_last_tick_tsc(void)
return (uint32_t)diff_nsec;
}
-
+
uint32_t bsp_clock_nanoseconds_since_last_tick_i8254(void)
{
@@ -179,7 +179,7 @@ static void calibrate_tsc(void)
begin_time = rdtsc();
for (i = rtems_clock_get_ticks_per_second() * pc386_isrs_per_tick;
- i != 0; --i ) {
+ i != 0; --i ) {
/* We know we've just completed a tick when timer goes from low to high */
then_lsb = then_msb = 0xff;
do {
@@ -200,7 +200,7 @@ static void calibrate_tsc(void)
#if 0
printk( "CPU clock at %u MHz\n", (uint32_t)(pc586_tsc_per_tick / 1000000));
#endif
-
+
pc586_tsc_per_tick /= rtems_clock_get_ticks_per_second();
}
@@ -218,7 +218,7 @@ static void clockOn(
pc386_clock_click_count = US_TO_TICK(pc386_microseconds_per_isr);
#if 0
- printk( "configured usecs per tick=%d \n",
+ printk( "configured usecs per tick=%d \n",
rtems_configuration_get_microseconds_per_tick() );
printk( "Microseconds per ISR =%d\n", pc386_microseconds_per_isr );
printk( "final ISRs per=%d\n", pc386_isrs_per_tick );
@@ -267,7 +267,7 @@ void Clock_driver_support_initialize_hardware(void)
{
bool use_tsc = false;
bool use_8254 = false;
-
+
#if (CLOCK_DRIVER_USE_TSC == 1)
use_tsc = true;
#endif
@@ -275,7 +275,7 @@ void Clock_driver_support_initialize_hardware(void)
#if (CLOCK_DRIVER_USE_8254 == 1)
use_8254 = true;
#endif
-
+
if ( !use_tsc && !use_8254 ) {
if ( x86_has_tsc() ) use_tsc = true;
else use_8254 = true;
@@ -284,12 +284,12 @@ void Clock_driver_support_initialize_hardware(void)
if ( use_8254 ) {
/* printk( "Use 8254\n" ); */
Clock_driver_support_at_tick = Clock_driver_support_at_tick_empty;
- Clock_driver_nanoseconds_since_last_tick =
+ Clock_driver_nanoseconds_since_last_tick =
bsp_clock_nanoseconds_since_last_tick_i8254;
} else {
/* printk( "Use TSC\n" ); */
Clock_driver_support_at_tick = Clock_driver_support_at_tick_tsc;
- Clock_driver_nanoseconds_since_last_tick =
+ Clock_driver_nanoseconds_since_last_tick =
bsp_clock_nanoseconds_since_last_tick_tsc;
}
diff --git a/c/src/lib/libbsp/i386/pc386/console/console.c b/c/src/lib/libbsp/i386/pc386/console/console.c
index d31f2a2413..49addc8d85 100644
--- a/c/src/lib/libbsp/i386/pc386/console/console.c
+++ b/c/src/lib/libbsp/i386/pc386/console/console.c
@@ -228,8 +228,8 @@ console_initialize(rtems_device_major_number major,
void *arg)
{
rtems_status_code status;
-
-
+
+
/* Initialize the KBD interface */
kbd_init();
diff --git a/c/src/lib/libbsp/i386/pc386/console/fb_vga.c b/c/src/lib/libbsp/i386/pc386/console/fb_vga.c
index 96251f8951..bc6a171225 100644
--- a/c/src/lib/libbsp/i386/pc386/console/fb_vga.c
+++ b/c/src/lib/libbsp/i386/pc386/console/fb_vga.c
@@ -86,7 +86,7 @@ rtems_device_driver frame_buffer_initialize(
printk("Error registering /dev/fb0 FBVGA framebuffer device!\n");
rtems_fatal_error_occurred( status );
}
-
+
return RTEMS_SUCCESSFUL;
}
@@ -102,13 +102,13 @@ rtems_device_driver frame_buffer_open(
if (pthread_mutex_trylock(&mutex)== 0){
/* restore previous state. for VGA this means return to text mode.
* leave out if graphics hardware has been initialized in
- * frame_buffer_initialize()
+ * frame_buffer_initialize()
*/
ega_hwinit();
- printk( "FBVGA open called.\n" );
+ printk( "FBVGA open called.\n" );
return RTEMS_SUCCESSFUL;
}
-
+
return RTEMS_UNSATISFIED;
}
@@ -145,7 +145,7 @@ rtems_device_driver frame_buffer_read(
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *)arg;
rw_args->bytes_moved = ((rw_args->offset + rw_args->count) > fb_fix.smem_len ) ? (fb_fix.smem_len - rw_args->offset) : rw_args->count;
memcpy(rw_args->buffer, (const void *) (fb_fix.smem_start + rw_args->offset), rw_args->bytes_moved);
- return RTEMS_SUCCESSFUL;
+ return RTEMS_SUCCESSFUL;
}
/*
@@ -160,7 +160,7 @@ rtems_device_driver frame_buffer_write(
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *)arg;
rw_args->bytes_moved = ((rw_args->offset + rw_args->count) > fb_fix.smem_len ) ? (fb_fix.smem_len - rw_args->offset) : rw_args->count;
memcpy( (void *) (fb_fix.smem_start + rw_args->offset), rw_args->buffer, rw_args->bytes_moved);
- return RTEMS_SUCCESSFUL;
+ return RTEMS_SUCCESSFUL;
}
static int get_fix_screen_info( struct fb_fix_screeninfo *info )
diff --git a/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c b/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
index e4635bd361..7c5b4bfa17 100644
--- a/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
+++ b/c/src/lib/libbsp/i386/pc386/console/ps2_mouse.c
@@ -96,10 +96,10 @@ static int isr_is_on(const rtems_irq_connect_data *irq)
}
static rtems_irq_connect_data ps2_isr_data = { AUX_IRQ,
- ps2_mouse_interrupt,
+ ps2_mouse_interrupt,
0,
- isr_on,
- isr_off,
+ isr_on,
+ isr_off,
isr_is_on };
/*
diff --git a/c/src/lib/libbsp/i386/pc386/ide/ide.c b/c/src/lib/libbsp/i386/pc386/ide/ide.c
index 602fd00a29..ccfe5fd865 100644
--- a/c/src/lib/libbsp/i386/pc386/ide/ide.c
+++ b/c/src/lib/libbsp/i386/pc386/ide/ide.c
@@ -87,7 +87,7 @@ static bool pc386_ide_status_busy (uint32_t port,
{
volatile uint8_t status;
int polls;
-
+
do
{
polls = 500;
@@ -121,14 +121,14 @@ static bool pc386_ide_status_data_ready (uint32_t port,
{
volatile uint8_t status;
int polls;
-
+
do
{
polls = 1000;
while (polls)
{
inport_byte (port + IDE_REGISTER_STATUS, status);
-
+
if (((status & IDE_REGISTER_STATUS_BSY) == 0) &&
(status & IDE_REGISTER_STATUS_DRQ))
{
@@ -229,7 +229,7 @@ void pc386_ide_initialize
char model_number[41];
char* p = &model_number[0];
bool data_ready;
-
+
memset(model_number, 0, sizeof(model_number));
outport_byte(port+IDE_REGISTER_DEVICE_HEAD,
@@ -240,11 +240,11 @@ void pc386_ide_initialize
*/
outport_byte(port+IDE_REGISTER_COMMAND, 0x00);
-
+
if (!pc386_ide_status_busy (port, PC386_IDE_PROBE_TIMEOUT,
&status, pc386_ide_prestart_sleep))
continue;
-
+
inport_byte(port+IDE_REGISTER_STATUS, status);
inport_byte(port+IDE_REGISTER_ERROR, error);
inport_byte(port+IDE_REGISTER_CYLINDER_LOW, cyllsb);
@@ -294,15 +294,15 @@ void pc386_ide_initialize
if (!data_ready)
continue;
-
+
byte = 0;
while (byte < 512)
{
uint16_t word;
-
+
if (pc386_ide_show && ((byte % 16) == 0))
printk("\n %04x : ", byte);
-
+
inport_word(port+IDE_REGISTER_DATA, word);
if (pc386_ide_show)
@@ -314,7 +314,7 @@ void pc386_ide_initialize
heads = word;
if (byte == 12)
sectors = word;
-
+
if (byte >= 54 && byte < (54 + 40))
{
*p = word >> 8;
@@ -325,10 +325,10 @@ void pc386_ide_initialize
if (byte == (47 * 2))
max_multiple_sectors = word & 0xff;
-
+
if (byte == (49 * 2))
capabilities = word;
-
+
if (byte == (59 * 2))
{
if (word & (1 << 8))
@@ -339,10 +339,10 @@ void pc386_ide_initialize
lba_sectors = word;
if (byte == (61 * 2))
lba_sectors |= word << 16;
-
+
byte += 2;
}
-
+
if (pc386_ide_show)
printk("\nbytes read = %d\n", byte);
@@ -359,7 +359,7 @@ void pc386_ide_initialize
size = cylinders * heads * sectors;
size /= 2;
-
+
if (size > (1024 * 1024))
{
size = (size * 10) / (1000 * 1000);
@@ -378,7 +378,7 @@ void pc386_ide_initialize
left = size / 10;
right = size % 10;
-
+
p--;
while (*p == ' ')
{
@@ -390,7 +390,7 @@ void pc386_ide_initialize
minor, label, model_number, left, right, units,
heads, cylinders, sectors, max_multiple_sectors * 512);
}
-
+
#if IDE_CLEAR_MULTI_SECTOR_COUNT
if (max_multiple_sectors)
{
@@ -417,14 +417,14 @@ void pc386_ide_initialize
}
}
#endif
-
+
outport_byte(port+IDE_REGISTER_DEVICE_CONTROL,
IDE_REGISTER_DEVICE_CONTROL_nIEN);
wait(10000);
}
pc386_ide_timeout = PC386_IDE_TASKING_TIMEOUT;
-
+
/*
* FIXME: enable interrupts, if needed
*/
@@ -535,7 +535,7 @@ void pc386_ide_read_block
uint16_t *lbuf;
uint8_t status_val;
int b;
-
+
if (!pc386_ide_status_data_ready (port, pc386_ide_timeout,
&status_val, pc386_ide_tasking_sleep))
{
@@ -544,7 +544,7 @@ void pc386_ide_read_block
/* FIXME: add an error here. */
return;
}
-
+
if (status_val & IDE_REGISTER_STATUS_ERR)
{
inport_byte(port+IDE_REGISTER_ERROR, status_val);
@@ -553,7 +553,7 @@ void pc386_ide_read_block
}
lbuf = (uint16_t*)((uint8_t*)(bufs[(*cbuf)].buffer) + (*pos));
-
+
for (b = 0; b < (ATA_SECTOR_SIZE / 2); b++)
{
inport_word(port+IDE_REGISTER_DATA,*lbuf);
@@ -614,7 +614,7 @@ void pc386_ide_write_block
uint16_t *lbuf;
uint8_t status_val;
int b;
-
+
if (!pc386_ide_status_data_ready (port, pc386_ide_timeout,
&status_val, pc386_ide_tasking_sleep))
{
@@ -623,16 +623,16 @@ void pc386_ide_write_block
/* FIXME: add an error here. */
return;
}
-
+
if (status_val & IDE_REGISTER_STATUS_ERR)
{
inport_byte(port+IDE_REGISTER_ERROR, status_val);
printk ("pc386_ide_write_block: error: %02x\n", status_val);
return;
}
-
+
lbuf = (uint16_t*)(((uint8_t*)bufs[*cbuf].buffer) + (*pos));
-
+
for (b = 0; b < (ATA_SECTOR_SIZE / 2); b++)
{
#if PC386_IDE_DEBUG_OUT
diff --git a/c/src/lib/libbsp/i386/pc386/ide/idecfg.c b/c/src/lib/libbsp/i386/pc386/ide/idecfg.c
index 35797d9ee4..f0f5bfe7cb 100644
--- a/c/src/lib/libbsp/i386/pc386/ide/idecfg.c
+++ b/c/src/lib/libbsp/i386/pc386/ide/idecfg.c
@@ -77,13 +77,13 @@ void bsp_ide_cmdline_init(void)
bool ide1 = IDE1_DEFAULT;
bool ide2 = IDE2_DEFAULT;
const char* ide;
-
+
/*
* Can have:
* --ide=0,1
*/
ide = bsp_cmdline_arg ("--ide=");
-
+
if (ide)
{
int i;
@@ -91,9 +91,9 @@ void bsp_ide_cmdline_init(void)
* If a command line option exists remove the defaults.
*/
ide1 = ide2 = false;
-
+
ide += sizeof ("--ide=") - 1;
-
+
for (i = 0; i < 3; i++)
{
switch (ide[i])
@@ -133,7 +133,7 @@ void bsp_ide_cmdline_init(void)
* type information.
*/
ide = bsp_cmdline_arg ("--ide-show");
-
+
if (ide)
pc386_ide_show = true;
}
diff --git a/c/src/lib/libbsp/i386/pc386/start/start.S b/c/src/lib/libbsp/i386/pc386/start/start.S
index 904bc57fa2..d4d1ec0fa2 100644
--- a/c/src/lib/libbsp/i386/pc386/start/start.S
+++ b/c/src/lib/libbsp/i386/pc386/start/start.S
@@ -104,7 +104,7 @@ speakl: jmp speakl # and SPIN!!!
/* Save multiboot info if we detect a multiboot loader */
cmp $0x2badb002,eax
jne 2f
-
+
/* We have multiboot info; let's hope DS and ES are OK... */
movl ebx, SYM(_boot_multiboot_info_p)
/* Check for memory size info and save */
@@ -231,7 +231,7 @@ SYM (zero_bss):
jne 1f
movl $SYM (no_sse_msg), 0(esp)
jmp SYM(_sse_panic)
-1:
+1:
#ifdef __SSE2__
testl $0x04000000, eax
jne 1f
@@ -301,7 +301,7 @@ SYM(_boot_multiboot_cmdline):
.rept 256 /* cmd line */
.byte 0
.endr
-
+
PUBLIC(_stack_size)
SYM(_stack_size):
.long STACK_SIZE
diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspgetworkarea.c b/c/src/lib/libbsp/i386/pc386/startup/bspgetworkarea.c
index b43b61b7db..df11f8505d 100644
--- a/c/src/lib/libbsp/i386/pc386/startup/bspgetworkarea.c
+++ b/c/src/lib/libbsp/i386/pc386/startup/bspgetworkarea.c
@@ -94,7 +94,7 @@ void bsp_size_memory(void)
break;
}
}
-
+
topAddr = (i-1)*1024*1024 - 4;
} else {
printk( "hardcoded\n" );
diff --git a/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S b/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S
index 6f1e370cfe..942c9ec465 100644
--- a/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S
+++ b/c/src/lib/libbsp/i386/pc386/startup/ldsegs.S
@@ -222,7 +222,7 @@ SYM(Interrupt_descriptor_table):
.rept 256
.word 0,0,0,0
.endr
-
+
/*---------------------------------------------------------------------------+
| Descriptor of IDT
+--------------------------------------------------------------------------*/
@@ -231,7 +231,7 @@ SYM(Interrupt_descriptor_table):
SYM(idtdesc):
.word (256*8 - 1)
.long SYM (Interrupt_descriptor_table)
-
+
END_DATA
.section .m_hdr
diff --git a/c/src/lib/libbsp/m32c/m32cbsp/start/start.S b/c/src/lib/libbsp/m32c/m32cbsp/start/start.S
index 8fa776f068..7033b4f27f 100644
--- a/c/src/lib/libbsp/m32c/m32cbsp/start/start.S
+++ b/c/src/lib/libbsp/m32c/m32cbsp/start/start.S
@@ -3,30 +3,30 @@
Copyright (c) 2005 Red Hat Incorporated.
All rights reserved.
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright
+ Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- The name of Red Hat Incorporated may not be used to endorse
- or promote products derived from this software without specific
+ The name of Red Hat Incorporated may not be used to endorse
+ or promote products derived from this software without specific
prior written permission.
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
@@ -34,7 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#warning The call is "void boot_card(const char* cmdline);"
#warning You need to pass a NULL.
#warning Please check and remove these errors.
-
+
#if defined(__r8c_cpu__) || defined(__m16c_cpu__)
#define A16
#define A(n,w) n
diff --git a/c/src/lib/libbsp/m32c/m32cbsp/startup/crtn.S b/c/src/lib/libbsp/m32c/m32cbsp/startup/crtn.S
index d4e86b8a5f..6004f28e05 100644
--- a/c/src/lib/libbsp/m32c/m32cbsp/startup/crtn.S
+++ b/c/src/lib/libbsp/m32c/m32cbsp/startup/crtn.S
@@ -3,30 +3,30 @@
Copyright (c) 2005 Red Hat Incorporated.
All rights reserved.
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright
+ Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- The name of Red Hat Incorporated may not be used to endorse
- or promote products derived from this software without specific
+ The name of Red Hat Incorporated may not be used to endorse
+ or promote products derived from this software without specific
prior written permission.
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL RED HAT INCORPORATED BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
diff --git a/c/src/lib/libbsp/m32c/m32cbsp/timer/timer.c b/c/src/lib/libbsp/m32c/m32cbsp/timer/timer.c
index da2f43fa89..7a2ad7aa60 100644
--- a/c/src/lib/libbsp/m32c/m32cbsp/timer/timer.c
+++ b/c/src/lib/libbsp/m32c/m32cbsp/timer/timer.c
@@ -37,10 +37,10 @@ void benchmark_timer_initialize(void)
{
benchmark_timer_interrupts = 0;
_set_var_vect (timer_ra_interrupt, ivec_timer_a0);
- TA0MR = 0x00;
- TA0 = 0xffff;
- TA0IC = 0x05;
- TABSR = 0x55;
+ TA0MR = 0x00;
+ TA0 = 0xffff;
+ TA0IC = 0x05;
+ TABSR = 0x55;
}
uint32_t benchmark_timer_read(void)
@@ -49,7 +49,7 @@ uint32_t benchmark_timer_read(void)
count = 0xFFFF - TA0;
count += benchmark_timer_interrupts * 0xFFFFL;
-
+
if (!benchmark_timer_find_average_overhead) {
if ( count > benchmark_timer_overhead )
count -= benchmark_timer_overhead;
diff --git a/c/src/lib/libbsp/m32r/m32rsim/start/start.S b/c/src/lib/libbsp/m32r/m32rsim/start/start.S
index 8b08bab887..207bd67f2b 100644
--- a/c/src/lib/libbsp/m32r/m32rsim/start/start.S
+++ b/c/src/lib/libbsp/m32r/m32rsim/start/start.S
@@ -25,7 +25,7 @@ _start:
add3 r2, r2, #low(__bss_start); R2 = start of BSS
seth r3, #shigh(_end)
add3 r3, r3, #low(_end) ; R3 = end of BSS + 1
-
+
sub r3, r2 ; R3 = BSS size in bytes
mv r4, r3
srli r4, #2 ; R4 = BSS size in longwords (rounded down)
diff --git a/c/src/lib/libbsp/nios2/nios2_iss/console/console.c b/c/src/lib/libbsp/nios2/nios2_iss/console/console.c
index d00a6a960f..bdff33c9dc 100644
--- a/c/src/lib/libbsp/nios2/nios2_iss/console/console.c
+++ b/c/src/lib/libbsp/nios2/nios2_iss/console/console.c
@@ -1,6 +1,6 @@
/*
* This file implements simple console IO via JTAG UART.
- *
+ *
* Based on no_cpu/console.c
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
@@ -25,7 +25,7 @@
/* is_character_ready
*
* If a character is available, this routine reads it and stores
- * it in
+ * it in
* reads the character and stores
*
* Input parameters: NONE
@@ -92,7 +92,7 @@ int console_inbyte_nonblocking(
*/
void console_outbyte_polled(
- int port,
+ int port,
char ch
)
{
diff --git a/c/src/lib/libbsp/nios2/nios2_iss/timer/timer.c b/c/src/lib/libbsp/nios2/nios2_iss/timer/timer.c
index 9ffd27d047..91fcdc6c5c 100644
--- a/c/src/lib/libbsp/nios2/nios2_iss/timer/timer.c
+++ b/c/src/lib/libbsp/nios2/nios2_iss/timer/timer.c
@@ -74,8 +74,8 @@ void benchmark_timer_initialize( void )
ALTERA_AVALON_TIMER_CONTROL_START_MSK;
/* This is the most safe place for resetting the overflow
- counter - just _after_ we reset the timer. Depending
- on the SOPC configuration, the counter may not be
+ counter - just _after_ we reset the timer. Depending
+ on the SOPC configuration, the counter may not be
stoppable and it doesn't make sense to assume that
there is any "safe" period before resetting. */
@@ -129,7 +129,7 @@ int benchmark_timer_read( void )
if(total < LEAST_VALID) return 0;
if(benchmark_timer_find_average_overhead != TRUE) total-= AVG_OVERHEAD;
-
+
return total;
}
diff --git a/c/src/lib/libbsp/sh/gensh1/start/start.S b/c/src/lib/libbsp/sh/gensh1/start/start.S
index 8c393eee44..a280c5088d 100644
--- a/c/src/lib/libbsp/sh/gensh1/start/start.S
+++ b/c/src/lib/libbsp/sh/gensh1/start/start.S
@@ -24,7 +24,7 @@
#warning Call to boot_card has changed and needs checking.
#warning The call is "void boot_card(const char* cmdline);"
#warning Please check and remove these warnings.
-
+
BEGIN_CODE
PUBLIC(start)
SYM (start):
diff --git a/c/src/lib/libbsp/sh/gensh2/start/start.S b/c/src/lib/libbsp/sh/gensh2/start/start.S
index 7d778f2af4..31be9fbd71 100644
--- a/c/src/lib/libbsp/sh/gensh2/start/start.S
+++ b/c/src/lib/libbsp/sh/gensh2/start/start.S
@@ -35,7 +35,7 @@
#warning Call to boot_card has changed and needs checking.
#warning The call is "void boot_card(const char* cmdline);"
#warning Please check and remove these warnings.
-
+
BEGIN_CODE
PUBLIC(start)
diff --git a/c/src/lib/libbsp/sh/gensh4/start/start.S b/c/src/lib/libbsp/sh/gensh4/start/start.S
index dd9eb97779..789a4dfed3 100644
--- a/c/src/lib/libbsp/sh/gensh4/start/start.S
+++ b/c/src/lib/libbsp/sh/gensh4/start/start.S
@@ -43,7 +43,7 @@
#warning Call to boot_card has changed and needs checking.
#warning The call is "void boot_card(const char* cmdline);"
#warning Please check and remove these warnings.
-
+
BEGIN_CODE
PUBLIC(start)
diff --git a/c/src/lib/libbsp/sh/shsim/start/start.S b/c/src/lib/libbsp/sh/shsim/start/start.S
index e66e62e7d3..cef3068ff6 100644
--- a/c/src/lib/libbsp/sh/shsim/start/start.S
+++ b/c/src/lib/libbsp/sh/shsim/start/start.S
@@ -25,7 +25,7 @@
#warning The call is "void boot_card(const char* cmdline);"
#warning You need to pass a NULL.
#warning Please check and remove these warnings.
-
+
BEGIN_CODE
PUBLIC(start)
SYM (start):
@@ -62,7 +62,7 @@ SYM (start):
mov #0,r4 ! command line
mov.l main_k,r0
jsr @r0
-
+
! call exit
mov r0,r4
diff --git a/c/src/lib/libbsp/shared/bspclean.c b/c/src/lib/libbsp/shared/bspclean.c
index 142988cf31..31fa046572 100644
--- a/c/src/lib/libbsp/shared/bspclean.c
+++ b/c/src/lib/libbsp/shared/bspclean.c
@@ -37,5 +37,5 @@ void bsp_cleanup( void )
*/
#if (BSP_PRESS_KEY_FOR_RESET) || (BSP_RESET_BOARD_AT_EXIT)
bsp_reset();
- #endif
+ #endif
}
diff --git a/c/src/lib/libbsp/shared/bspgetworkarea.c b/c/src/lib/libbsp/shared/bspgetworkarea.c
index 0f261b37d1..e646e32894 100644
--- a/c/src/lib/libbsp/shared/bspgetworkarea.c
+++ b/c/src/lib/libbsp/shared/bspgetworkarea.c
@@ -68,7 +68,7 @@ void bsp_get_work_area(
* you are allocating the Work Area in a new BSP.
*/
#ifdef BSP_GET_WORK_AREA_DEBUG
- {
+ {
void *sp = __builtin_frame_address(0);
void *end = *work_area_start + *work_area_size;
printk(
diff --git a/c/src/lib/libbsp/shared/bspinit.c b/c/src/lib/libbsp/shared/bspinit.c
index 9e4d4afdd4..3245bc32ab 100644
--- a/c/src/lib/libbsp/shared/bspinit.c
+++ b/c/src/lib/libbsp/shared/bspinit.c
@@ -38,7 +38,7 @@ void Init (rtems_task_argument arg)
if (boot_cmdline)
{
cmdline = malloc (strlen (boot_cmdline) + 1);
-
+
if (cmdline)
{
strcpy (cmdline, boot_cmdline);
@@ -62,7 +62,7 @@ void Init (rtems_task_argument arg)
if (argv)
{
int a;
-
+
command = cmdline;
argv[0] = command;
@@ -76,13 +76,13 @@ void Init (rtems_task_argument arg)
argc = 0;
}
}
-
+
#ifdef RTEMS_NETWORKING
rtems_bsdnet_initialize_network ();
#endif
result = main (argc, argv);
-
+
free (argv);
free (cmdline);
diff --git a/c/src/lib/libbsp/shared/include/irq-config.h b/c/src/lib/libbsp/shared/include/irq-config.h
index 9596f98b5c..ff3136e795 100644
--- a/c/src/lib/libbsp/shared/include/irq-config.h
+++ b/c/src/lib/libbsp/shared/include/irq-config.h
@@ -7,7 +7,7 @@
*/
/*
- * Based on concepts of Pavel Pisa, Till Straumann and Eric Valette.
+ * Based on concepts of Pavel Pisa, Till Straumann and Eric Valette.
*
* Copyright (c) 2008, 2009
* embedded brains GmbH
diff --git a/c/src/lib/libbsp/shared/include/irq-generic.h b/c/src/lib/libbsp/shared/include/irq-generic.h
index 555e3e3ed5..e35b57a366 100644
--- a/c/src/lib/libbsp/shared/include/irq-generic.h
+++ b/c/src/lib/libbsp/shared/include/irq-generic.h
@@ -7,7 +7,7 @@
*/
/*
- * Based on concepts of Pavel Pisa, Till Straumann and Eric Valette.
+ * Based on concepts of Pavel Pisa, Till Straumann and Eric Valette.
*
* Copyright (c) 2008, 2009
* embedded brains GmbH
diff --git a/c/src/lib/libbsp/shared/include/stackalloc.h b/c/src/lib/libbsp/shared/include/stackalloc.h
index 56132da317..9462ed5f2a 100644
--- a/c/src/lib/libbsp/shared/include/stackalloc.h
+++ b/c/src/lib/libbsp/shared/include/stackalloc.h
@@ -41,7 +41,7 @@ extern "C" {
*
* @code
* #include <bsp/stackalloc.h>
- *
+ *
* #define CONFIGURE_INIT
*
* #include <confdefs.h>
diff --git a/c/src/lib/libbsp/shared/src/irq-generic.c b/c/src/lib/libbsp/shared/src/irq-generic.c
index 2acd6b81f1..9911727bf4 100644
--- a/c/src/lib/libbsp/shared/src/irq-generic.c
+++ b/c/src/lib/libbsp/shared/src/irq-generic.c
@@ -7,7 +7,7 @@
*/
/*
- * Based on concepts of Pavel Pisa, Till Straumann and Eric Valette.
+ * Based on concepts of Pavel Pisa, Till Straumann and Eric Valette.
*
* Copyright (c) 2008, 2009
* embedded brains GmbH