summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e/startup
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-21 10:43:04 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-21 10:43:04 +0000
commit6128a4aa5e791ed4e0a655bfd346a52d92da7883 (patch)
treeaf53ca3f67ce405b6fbc6c98399c8e0c87e01a9e /c/src/lib/libbsp/powerpc/score603e/startup
parent2004-04-20 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-6128a4aa5e791ed4e0a655bfd346a52d92da7883.tar.bz2
Remove stray white spaces.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/score603e/startup')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c10
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c24
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c32
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c40
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/setvec.c8
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/spurious.c18
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c2
7 files changed, 67 insertions, 67 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c b/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c
index 59d7168b42..e1b0091355 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/FPGA.c
@@ -7,7 +7,7 @@
* the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
- * $Id:
+ * $Id:
*/
#include <bsp.h>
@@ -63,7 +63,7 @@ uint16_t get_irq_mask()
return value;
}
-void unmask_irq(
+void unmask_irq(
uint16_t irq_idx
)
{
@@ -85,7 +85,7 @@ void unmask_irq(
}
#endif
- value &= (~(0x1 << mask_idx));
+ value &= (~(0x1 << mask_idx));
set_irq_mask( value );
}
@@ -111,7 +111,7 @@ void init_irq_data_register()
uint16_t read_and_clear_PMC_irq(
uint16_t irq
-)
+)
{
uint16_t status_word = irq;
@@ -155,7 +155,7 @@ uint16_t read_and_clear_irq()
irq = (*SCORE603E_FPGA_VECT_DATA);
if ((irq & 0xffff0) != 0x10) {
- DEBUG_puts( "ERROR:: no irq data\n");
+ DEBUG_puts( "ERROR:: no irq data\n");
return (irq | 0x80);
}
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c b/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
index e5d1fcce1b..3f016c3612 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/Hwr_init.c
@@ -1,6 +1,6 @@
/* Hwr_init.c
*
- * $Id:
+ * $Id:
*/
#include <bsp.h>
@@ -75,22 +75,22 @@ typedef struct {
void init_RTC()
{
volatile Harris_RTC *the_RTC;
-
+
the_RTC = (volatile Harris_RTC *)SCORE603E_RTC_ADDRESS;
the_RTC->command_register = 0x0;
}
void init_PCI()
-{
+{
#if (SCORE603E_USE_SDS) | (SCORE603E_USE_OPEN_FIRMWARE) | (SCORE603E_USE_NONE)
uint32_t value;
/*
- * NOTE: Accessing any memory location not mapped by the BAT
- * registers will cause a TLB miss exception.
- * Set the DBAT1 to be configured for 256M of PCI MEM
- * at 0xC0000000 with Write-through and Guarded Attributed and
+ * NOTE: Accessing any memory location not mapped by the BAT
+ * registers will cause a TLB miss exception.
+ * Set the DBAT1 to be configured for 256M of PCI MEM
+ * at 0xC0000000 with Write-through and Guarded Attributed and
* read/write access allowed
*/
@@ -118,10 +118,10 @@ void init_PCI()
#if (0)
/*
- * NOTE: Accessing any memory location not mapped by the BAT
- * registers will cause a TLB miss exception.
- * Set the DBAT3 to be configured for 256M of PCI MEM
- * at 0xC0000000 with Write-through and Guarded Attributed and
+ * NOTE: Accessing any memory location not mapped by the BAT
+ * registers will cause a TLB miss exception.
+ * Set the DBAT3 to be configured for 256M of PCI MEM
+ * at 0xC0000000 with Write-through and Guarded Attributed and
* read/write access allowed
*/
@@ -192,7 +192,7 @@ void data_cache_enable ()
uint32_t value;
/*
- * enable data cache
+ * enable data cache
*/
PPC_Get_HID0( value );
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
index 11603b0c95..b3b2c22607 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
@@ -12,7 +12,7 @@
* the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
- * $Id:
+ * $Id:
*/
#include <string.h>
@@ -25,7 +25,7 @@
* The original table from the application and our copy of it with
* some changes.
*/
-
+
extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration;
rtems_cpu_table Cpu_table;
@@ -71,7 +71,7 @@ void bsp_pretasking_hook(void)
* bsp_predriver_hook
*
* Before drivers are setup initialize interupt vectors.
- */
+ */
void init_RTC();
void initialize_PMC();
@@ -88,13 +88,13 @@ void bsp_predriver_hook(void)
initialize_PMC();
#endif
- /*
+ /*
* Initialize Bsp General purpose vector table.
*/
initialize_external_exception_vector();
#if (0)
- /*
+ /*
* XXX - Modify this to write a 48000000 (loop to self) command
* to each interrupt location. This is better for debug.
*/
@@ -167,7 +167,7 @@ void initialize_PMC() {
*
* Standard post driver hook plus some BSP specific stuff.
*/
-
+
void SCORE603e_bsp_postdriver_hook(void)
{
extern void Init_EE_mask_init(void);
@@ -205,27 +205,27 @@ void bsp_start( void )
);
/*
- * There are multiple ROM monitors available for this board.
+ * There are multiple ROM monitors available for this board.
*/
#if (SCORE603E_USE_SDS)
- /*
+ /*
* Write instruction for Unconditional Branch to ROM vector.
*/
-
- Code = 0x4bf00002;
- for (Address = 0x100; Address <= 0xe00; Address += 0x100) {
+
+ Code = 0x4bf00002;
+ for (Address = 0x100; Address <= 0xe00; Address += 0x100) {
A_Vector = (uint32_t*)Address;
Code = 0x4bf00002 + Address;
*A_Vector = Code;
}
-
- for (Address = 0x1000; Address <= 0x1400; Address += 0x100) {
+
+ for (Address = 0x1000; Address <= 0x1400; Address += 0x100) {
A_Vector = (uint32_t*)Address;
Code = 0x4bf00002 + Address;
*A_Vector = Code;
}
-
+
Cpu_table.exceptions_in_RAM = TRUE;
msr_value = 0x2030;
@@ -263,7 +263,7 @@ void bsp_start( void )
* not malloc'ed. It is just "pulled from the air".
*/
- work_space_start =
+ work_space_start =
(unsigned char *)&RAM_END - BSP_Configuration.work_space_size;
if ( work_space_start <= (unsigned char *)&end ) {
@@ -287,7 +287,7 @@ void bsp_start( void )
Cpu_table.idle_task_stack_size = (3 * STACK_MINIMUM_SIZE);
#if ( PPC_USE_DATA_CACHE )
- instruction_cache_enable ();
+ instruction_cache_enable ();
data_cache_enable ();
#endif
}
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c b/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
index a97444c865..b1e59ed579 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/genpvec.c
@@ -20,8 +20,8 @@
#include <stdio.h> /* for sprintf */
-/*
- * Proto types for this file
+/*
+ * Proto types for this file
*/
rtems_isr external_exception_ISR (
@@ -31,8 +31,8 @@ rtems_isr external_exception_ISR (
#define NUM_LIRQ_HANDLERS 20
#define NUM_LIRQ ( MAX_BOARD_IRQS - PPC_IRQ_LAST )
-/*
- * 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
@@ -47,7 +47,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];
/* XXX */
@@ -67,14 +67,14 @@ void initialize_external_exception_vector ()
for (i=0; i <NUM_LIRQ; i++)
Chain_Initialize_empty( &ISR_Array[i] );
-
+
init_irq_data_register();
-
- /*
- * 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 );
}
@@ -83,7 +83,7 @@ void Init_EE_mask_init() {
}
/*
- * This routine installs one of multiple ISRs for the general purpose
+ * This routine installs one of multiple ISRs for the general purpose
* inerrupt.
*/
rtems_isr_entry set_EE_vector(
@@ -93,9 +93,9 @@ rtems_isr_entry set_EE_vector(
{
uint16_t vec_idx = vector - Score_IRQ_First;
uint32_t index;
-
+
assert (Nodes_Used < NUM_LIRQ_HANDLERS);
-
+
/*
* If we have already installed this handler for this vector, then
* just reset it.
@@ -110,15 +110,15 @@ rtems_isr_entry set_EE_vector(
/*
* Doing things in this order makes them more atomic
*/
-
- Nodes_Used++;
+
+ Nodes_Used++;
index = Nodes_Used - 1;
ISR_Nodes[index].handler = handler;
ISR_Nodes[index].vector = vector;
- /* printf( "Vector Index: %04x, Vector: %d (%x)\n",
+ /* printf( "Vector Index: %04x, Vector: %d (%x)\n",
vec_idx, vector, vector); */
Chain_Append( &ISR_Array[vec_idx], &ISR_Nodes[index].Node );
@@ -131,13 +131,13 @@ rtems_isr_entry set_EE_vector(
return NULL;
}
-/*
+/*
* This interrupt service routine is called for an External Exception.
*/
rtems_isr external_exception_ISR (
rtems_vector_number vector /* IN */
)
-{
+{
uint16_t index;
EE_ISR_Type *node;
uint16_t value;
@@ -167,7 +167,7 @@ rtems_isr external_exception_ISR (
node = (EE_ISR_Type *)(ISR_Array[ index ].first);
if ( _Chain_Is_tail( &ISR_Array[ index ], (void *)node ) ) {
- sprintf(err_msg,"ERROR:: check %d interrupt %02d has no isr\n",
+ sprintf(err_msg,"ERROR:: check %d interrupt %02d has no isr\n",
check_irq, index);
DEBUG_puts( err_msg);
value = get_irq_mask();
@@ -183,7 +183,7 @@ rtems_isr external_exception_ISR (
}
else
#endif
- {
+ {
node = (EE_ISR_Type *)(ISR_Array[ index ].first);
if ( _Chain_Is_tail( &ISR_Array[ index ], (void *)node ) ) {
sprintf(err_msg,"ERROR:: interrupt %02x has no isr\n", index);
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/setvec.c b/c/src/lib/libbsp/powerpc/score603e/startup/setvec.c
index 24bb18922e..b10521f05e 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/setvec.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/setvec.c
@@ -36,7 +36,7 @@
* the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
- * $Id:
+ * $Id:
*/
#include <rtems.h>
@@ -44,8 +44,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 */
@@ -57,7 +57,7 @@ rtems_isr_entry set_vector( /* returns old vector */
rtems_status_code status;
- /*
+ /*
* vectors greater than PPC603e_IRQ_LAST are handled by the General purpose
* interupt handler.
*/
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/spurious.c b/c/src/lib/libbsp/powerpc/score603e/startup/spurious.c
index a3b87f600b..59d5ba2949 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/spurious.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/spurious.c
@@ -1,11 +1,11 @@
/*
* Score603e 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 ERC32 implementation
- * of the SPARC by On-Line Applications Research Corporation (OAR)
+ * Developed as 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.
@@ -82,9 +82,9 @@ rtems_isr bsp_spurious_handler(
break;
#if defined(ppc403)
-#error "Please fill in names. "
+#error "Please fill in names. "
case PPC_IRQ_CRIT :
- DEBUG_puts( "\nTrap: Critical Error ");
+ DEBUG_puts( "\nTrap: Critical Error ");
break;
case PPC_IRQ_PIT:
DEBUG_puts( "\nTrap: 0x01000" );
@@ -100,13 +100,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( "\nTrap: 0x02000" );
break;
#elif defined(ppc603)
-#error "Please fill in names. "
+#error "Please fill in names. "
case PPC_IRQ_TRANS_MISS :
DEBUG_puts( "\nTrap: 0x1000" );
break;
@@ -141,7 +141,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;
@@ -179,7 +179,7 @@ void bsp_spurious_initialize()
;
/* set_vector( bsp_stub_handler, trap, 1 ); */
else
- set_vector( bsp_spurious_handler, trap, 1 );
+ set_vector( bsp_spurious_handler, trap, 1 );
}
}
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c b/c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c
index 441c98a224..8e2f334881 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/vmeintr.c
@@ -9,7 +9,7 @@
* the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
- * $Id:
+ * $Id:
*/
#include <rtems.h>