summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-08 15:19:23 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-08 15:19:23 +0000
commitdf4fcaa0afa6c8878f1b44aa8bf1bdceea3863b9 (patch)
tree483d35f6cc4592afd62b7f2c64895f5a29f60921 /cpukit
parent2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-df4fcaa0afa6c8878f1b44aa8bf1bdceea3863b9.tar.bz2
2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c: Remove extraneous spaces.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/cpu/arm/ChangeLog4
-rw-r--r--cpukit/score/cpu/arm/cpu.c8
-rw-r--r--cpukit/score/cpu/bfin/ChangeLog4
-rw-r--r--cpukit/score/cpu/bfin/cpu.c2
-rw-r--r--cpukit/score/cpu/sh/ChangeLog4
-rw-r--r--cpukit/score/cpu/sh/cpu.c4
-rw-r--r--cpukit/score/cpu/sparc/ChangeLog4
-rw-r--r--cpukit/score/cpu/sparc/cpu.c6
-rw-r--r--cpukit/score/cpu/unix/ChangeLog4
-rw-r--r--cpukit/score/cpu/unix/cpu.c18
10 files changed, 39 insertions, 19 deletions
diff --git a/cpukit/score/cpu/arm/ChangeLog b/cpukit/score/cpu/arm/ChangeLog
index 5ece00a3d4..a4a514b2ce 100644
--- a/cpukit/score/cpu/arm/ChangeLog
+++ b/cpukit/score/cpu/arm/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * cpu.c: Remove extraneous spaces.
+
2008-09-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* Makefile.am: Merge thumb/Makefile.am.
diff --git a/cpukit/score/cpu/arm/cpu.c b/cpukit/score/cpu/arm/cpu.c
index b46e8a10a0..48113bf6c7 100644
--- a/cpukit/score/cpu/arm/cpu.c
+++ b/cpukit/score/cpu/arm/cpu.c
@@ -146,8 +146,8 @@ void _CPU_Context_Initialize(
bool is_fp
)
{
- the_context->register_sp = (uint32_t )stack_base + size ;
- the_context->register_lr = (uint32_t )entry_point;
+ the_context->register_sp = (uint32_t)stack_base + size ;
+ the_context->register_lr = (uint32_t)entry_point;
the_context->register_cpsr = new_level | arm_cpu_mode;
}
@@ -261,7 +261,7 @@ void rtems_exception_init_mngt(void)
#define GET_U(x) ((x & 0x00800000) >> 23)
#define GET_I(x) ((x & 0x02000000) >> 25)
-#define GET_REG(r, ctx) (((uint32_t *)ctx)[r])
-#define SET_REG(r, ctx, v) (((uint32_t *)ctx)[r] = v)
+#define GET_REG(r, ctx) (((uint32_t *)ctx)[r])
+#define SET_REG(r, ctx, v) (((uint32_t *)ctx)[r] = v)
#define GET_OFFSET(insn) (insn & 0xfff)
diff --git a/cpukit/score/cpu/bfin/ChangeLog b/cpukit/score/cpu/bfin/ChangeLog
index 671edd5297..0d504646fe 100644
--- a/cpukit/score/cpu/bfin/ChangeLog
+++ b/cpukit/score/cpu/bfin/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * cpu.c: Remove extraneous spaces.
+
2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/score/cpu.h: Convert to "bool".
diff --git a/cpukit/score/cpu/bfin/cpu.c b/cpukit/score/cpu/bfin/cpu.c
index 8f90229267..a4be8da23f 100644
--- a/cpukit/score/cpu/bfin/cpu.c
+++ b/cpukit/score/cpu/bfin/cpu.c
@@ -202,7 +202,7 @@ void _CPU_Context_Initialize(
)
{
uint32_t stack_high; /* highest "stack aligned" address */
- stack_high = ((uint32_t )(stack_base) + size);
+ stack_high = ((uint32_t)(stack_base) + size);
the_context->register_sp = stack_high;
the_context->register_rets = (uint32_t) entry_point;
diff --git a/cpukit/score/cpu/sh/ChangeLog b/cpukit/score/cpu/sh/ChangeLog
index d210b589d9..20642d712f 100644
--- a/cpukit/score/cpu/sh/ChangeLog
+++ b/cpukit/score/cpu/sh/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * cpu.c: Remove extraneous spaces.
+
2008-08-21 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/types.h: Include stdbool.h.
diff --git a/cpukit/score/cpu/sh/cpu.c b/cpukit/score/cpu/sh/cpu.c
index c582c07a09..bc7ce0a467 100644
--- a/cpukit/score/cpu/sh/cpu.c
+++ b/cpukit/score/cpu/sh/cpu.c
@@ -233,13 +233,13 @@ void _CPU_Context_Initialize(
void (*_entry_point)(void),
int _is_fp )
{
- _the_context->r15 = (uint32_t *) ((uint32_t ) (_stack_base) + (_size) );
+ _the_context->r15 = (uint32_t *) ((uint32_t) (_stack_base) + (_size) );
#if defined(__sh1__) || defined(__sh2__) || defined(__SH2E__)
_the_context->sr = (_isr << 4) & 0x00f0 ;
#else
_the_context->sr = SH4_SR_MD | ((_isr << 4) & 0x00f0);
#endif
- _the_context->pr = (uint32_t *) _entry_point ;
+ _the_context->pr = (uint32_t *) _entry_point ;
#if 0 && SH_HAS_FPU
diff --git a/cpukit/score/cpu/sparc/ChangeLog b/cpukit/score/cpu/sparc/ChangeLog
index 7e8fa3328d..aa05b31c73 100644
--- a/cpukit/score/cpu/sparc/ChangeLog
+++ b/cpukit/score/cpu/sparc/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * cpu.c: Remove extraneous spaces.
+
2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/score/cpu.h: Convert to "bool".
diff --git a/cpukit/score/cpu/sparc/cpu.c b/cpukit/score/cpu/sparc/cpu.c
index aa1cc8f639..63ff2e574b 100644
--- a/cpukit/score/cpu/sparc/cpu.c
+++ b/cpukit/score/cpu/sparc/cpu.c
@@ -186,7 +186,7 @@ void _CPU_ISR_install_raw_handler(
*slot = _CPU_Trap_slot_template;
- u32_handler = (uint32_t ) new_handler;
+ u32_handler = (uint32_t) new_handler;
slot->mov_vector_l3 |= vector;
slot->sethi_of_handler_to_l4 |=
@@ -288,7 +288,7 @@ void _CPU_Context_Initialize(
* based on the stack_high address.
*/
- stack_high = ((uint32_t )(stack_base) + size);
+ stack_high = ((uint32_t)(stack_base) + size);
stack_high &= ~(CPU_STACK_ALIGNMENT - 1);
the_size = size & ~(CPU_STACK_ALIGNMENT - 1);
@@ -297,7 +297,7 @@ void _CPU_Context_Initialize(
* See the README in this directory for a diagram of the stack.
*/
- the_context->o7 = ((uint32_t ) entry_point) - 8;
+ the_context->o7 = ((uint32_t) entry_point) - 8;
the_context->o6_sp = stack_high - CPU_MINIMUM_STACK_FRAME_SIZE;
the_context->i6_fp = 0;
diff --git a/cpukit/score/cpu/unix/ChangeLog b/cpukit/score/cpu/unix/ChangeLog
index a384e71fe1..f96a6163a8 100644
--- a/cpukit/score/cpu/unix/ChangeLog
+++ b/cpukit/score/cpu/unix/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * cpu.c: Remove extraneous spaces.
+
2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/score/cpu.h: Convert to "bool".
diff --git a/cpukit/score/cpu/unix/cpu.c b/cpukit/score/cpu/unix/cpu.c
index 25251ae4cf..6d67842c56 100644
--- a/cpukit/score/cpu/unix/cpu.c
+++ b/cpukit/score/cpu/unix/cpu.c
@@ -538,7 +538,7 @@ void _CPU_Context_Initialize(
uint32_t _stack_high; /* highest "stack aligned" address */
uint32_t _the_size;
- jmp_addr = (uint32_t ) _entry_point;
+ jmp_addr = (uint32_t) _entry_point;
/*
* On CPUs with stacks which grow down, we build the stack
@@ -546,10 +546,10 @@ void _CPU_Context_Initialize(
* grow up, we build the stack based on the _stack_low address.
*/
- _stack_low = (uint32_t )(_stack_base) + CPU_STACK_ALIGNMENT - 1;
+ _stack_low = (uint32_t)(_stack_base) + CPU_STACK_ALIGNMENT - 1;
_stack_low &= ~(CPU_STACK_ALIGNMENT - 1);
- _stack_high = (uint32_t )(_stack_base) + _size;
+ _stack_high = (uint32_t)(_stack_base) + _size;
_stack_high &= ~(CPU_STACK_ALIGNMENT - 1);
if (_stack_high > _stack_low)
@@ -568,11 +568,11 @@ void _CPU_Context_Initialize(
*(Context_Control_overlay *)_the_context =
_CPU_Context_Default_with_ISRs_disabled;
- addr = (uint32_t *)_the_context;
+ addr = (uint32_t *)_the_context;
#if defined(__hppa__)
*(addr + RP_OFF) = jmp_addr;
- *(addr + SP_OFF) = (uint32_t )(_stack_low + CPU_FRAME_SIZE);
+ *(addr + SP_OFF) = (uint32_t)(_stack_low + CPU_FRAME_SIZE);
/*
* See if we are using shared libraries by checking
@@ -583,7 +583,7 @@ void _CPU_Context_Initialize(
if (jmp_addr & 0x40000000) {
jmp_addr &= 0xfffffffc;
- *(addr + RP_OFF) = *(uint32_t *)jmp_addr;
+ *(addr + RP_OFF) = *(uint32_t *)jmp_addr;
}
#elif defined(__sparc__)
@@ -595,8 +595,8 @@ void _CPU_Context_Initialize(
asm ("ta 0x03"); /* flush registers */
*(addr + RP_OFF) = jmp_addr + ADDR_ADJ_OFFSET;
- *(addr + SP_OFF) = (uint32_t )(_stack_high - CPU_FRAME_SIZE);
- *(addr + FP_OFF) = (uint32_t )(_stack_high);
+ *(addr + SP_OFF) = (uint32_t)(_stack_high - CPU_FRAME_SIZE);
+ *(addr + FP_OFF) = (uint32_t)(_stack_high);
#elif defined(__i386__)
@@ -893,7 +893,7 @@ void _CPU_Stray_signal(int sig_num)
* _CPU_Fatal_error
*/
-void _CPU_Fatal_error(uint32_t error)
+void _CPU_Fatal_error(uint32_t error)
{
setitimer(ITIMER_REAL, 0, 0);