diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-25 22:17:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-25 22:17:35 +0000 |
commit | ceda5c27e05650922ea6096fdef43fdb0403e6fe (patch) | |
tree | 61ae5d13993656674f94c0f45987b14ede478f3e /cpukit | |
parent | 2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff) | |
download | rtems-ceda5c27e05650922ea6096fdef43fdb0403e6fe.tar.bz2 |
2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* context_init.c: Eliminate warnings.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/score/cpu/m32c/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/score/cpu/m32c/context_init.c | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/cpukit/score/cpu/m32c/ChangeLog b/cpukit/score/cpu/m32c/ChangeLog index 4a9eb122f8..ec52b6644c 100644 --- a/cpukit/score/cpu/m32c/ChangeLog +++ b/cpukit/score/cpu/m32c/ChangeLog @@ -1,3 +1,7 @@ +2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com> + + * context_init.c: Eliminate warnings. + 2010-03-27 Joel Sherrill <joel.sherrill@oarcorp.com> * context_init.c, context_switch.S, cpu.c, cpu_asm.c, varvects.S: Add diff --git a/cpukit/score/cpu/m32c/context_init.c b/cpukit/score/cpu/m32c/context_init.c index 2eda3cb331..4558330be0 100644 --- a/cpukit/score/cpu/m32c/context_init.c +++ b/cpukit/score/cpu/m32c/context_init.c @@ -63,11 +63,11 @@ void _CPU_Context_Initialize( frame->a1 =0xa1a2a3a4; frame->r0r2 = 0; frame->r1r3 = 0; - frame->frameLow = ((uint32_t)frame) & 0xffff; - frame->frameHigh = ((uint32_t)frame >> 16) & 0xffff; - frame->startLow = ((uint32_t)entry_point) & 0xffff; - frame->startHigh = ((uint32_t)entry_point >> 16) & 0xffff; + frame->frameLow = (uint16_t) (((uint32_t)frame) & 0xffff); + frame->frameHigh = (uint16_t) (((uint32_t)frame >> 16) & 0xffff); + frame->startLow = (uint16_t) (((uint32_t)entry_point) & 0xffff); + frame->startHigh = (uint16_t) (((uint32_t)entry_point >> 16) & 0xffff); - the_context->sp = (uint32_t)frame; - the_context->fb = (uint32_t)&frame->frameLow; + the_context->sp = (uintptr_t)frame; + the_context->fb = (uintptr_t)&frame->frameLow; } |