From 9347024d815f5b585779b98b2c19346eb2b94ad3 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 31 Mar 2004 03:45:46 +0000 Subject: 2004-03-31 Ralf Corsepius * cpu.c: Convert to using c99 fixed size types. --- .../powerpc/support/new_exception_processing/ChangeLog | 4 ++++ .../powerpc/support/new_exception_processing/cpu.c | 18 +++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/support/new_exception_processing') 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 + + * cpu.c: Convert to using c99 fixed size types. + 2004-01-30 Ralf Corsepius * 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))); -- cgit v1.2.3