mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* context_init.c: Eliminate warnings.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user