2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>

* cpu.c: Convert to using c99 fixed size types.
This commit is contained in:
Ralf Corsepius
2004-03-31 03:45:46 +00:00
parent 1c17b3ee2c
commit 9347024d81
4 changed files with 26 additions and 18 deletions

View File

@@ -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.

View File

@@ -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)));