diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 03:45:46 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-03-31 03:45:46 +0000 |
commit | 9347024d815f5b585779b98b2c19346eb2b94ad3 (patch) | |
tree | 3512f0aa658eca98f28d105ee8b2b1af575820c7 /c/src/lib/libcpu/powerpc/new-exceptions/cpu.c | |
parent | 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-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/libcpu/powerpc/new-exceptions/cpu.c')
-rw-r--r-- | c/src/lib/libcpu/powerpc/new-exceptions/cpu.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c b/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c index 187bb42dd8..b9859baa6b 100644 --- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu.c +++ b/c/src/lib/libcpu/powerpc/new-exceptions/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))); |