summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/support/new_exception_processing
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-03-31 03:45:46 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-03-31 03:45:46 +0000
commit9347024d815f5b585779b98b2c19346eb2b94ad3 (patch)
tree3512f0aa658eca98f28d105ee8b2b1af575820c7 /c/src/lib/libbsp/powerpc/support/new_exception_processing
parent2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-9347024d815f5b585779b98b2c19346eb2b94ad3.tar.bz2
2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
* cpu.c: Convert to using c99 fixed size types.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/support/new_exception_processing')
-rw-r--r--c/src/lib/libbsp/powerpc/support/new_exception_processing/ChangeLog4
-rw-r--r--c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.c18
2 files changed, 13 insertions, 9 deletions
diff --git a/c/src/lib/libbsp/powerpc/support/new_exception_processing/ChangeLog b/c/src/lib/libbsp/powerpc/support/new_exception_processing/ChangeLog
index d4714a0b0d..f595efc38b 100644
--- a/c/src/lib/libbsp/powerpc/support/new_exception_processing/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/support/new_exception_processing/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>
+
+ * cpu.c: Convert to using c99 fixed size types.
+
2004-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Add RTEMS_PROG_CCAS.
diff --git a/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.c b/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.c
index 187bb42dd8..b9859baa6b 100644
--- a/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.c
+++ b/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.c
@@ -67,21 +67,21 @@ void _CPU_Initialize(
void _CPU_Context_Initialize(
Context_Control *the_context,
- unsigned32 *stack_base,
- unsigned32 size,
- unsigned32 new_level,
+ uint32_t *stack_base,
+ uint32_t size,
+ uint32_t new_level,
void *entry_point,
boolean is_fp
)
{
- unsigned32 msr_value;
- unsigned32 sp;
+ uint32_t msr_value;
+ uint32_t sp;
- sp = (unsigned32)stack_base + size - CPU_MINIMUM_STACK_FRAME_SIZE;
+ sp = (uint32_t)stack_base + size - CPU_MINIMUM_STACK_FRAME_SIZE;
sp &= ~(CPU_STACK_ALIGNMENT-1);
- *((unsigned32 *)sp) = 0;
+ *((uint32_t*)sp) = 0;
the_context->gpr1 = sp;
_CPU_MSR_GET( msr_value );
@@ -119,7 +119,7 @@ void _CPU_Context_Initialize(
the_context->msr &= ~PPC_MSR_FP;
#endif
- the_context->pc = (unsigned32)entry_point;
+ the_context->pc = (uint32_t)entry_point;
#if (PPC_ABI == PPC_ABI_SVR4)
{ unsigned r13 = 0;
@@ -128,7 +128,7 @@ void _CPU_Context_Initialize(
the_context->gpr13 = r13;
}
#elif (PPC_ABI == PPC_ABI_EABI)
- { unsigned32 r2 = 0;
+ { uint32_t r2 = 0;
unsigned r13 = 0;
asm volatile ("mr %0,2; mr %1,13" : "=r" ((r2)), "=r" ((r13)));