mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-21 16:37:28 +08:00
2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c: Remove extraneous spaces.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* cpu.c: Remove extraneous spaces.
|
||||
|
||||
2008-09-07 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am: Merge thumb/Makefile.am.
|
||||
|
||||
@@ -146,8 +146,8 @@ void _CPU_Context_Initialize(
|
||||
bool is_fp
|
||||
)
|
||||
{
|
||||
the_context->register_sp = (uint32_t )stack_base + size ;
|
||||
the_context->register_lr = (uint32_t )entry_point;
|
||||
the_context->register_sp = (uint32_t)stack_base + size ;
|
||||
the_context->register_lr = (uint32_t)entry_point;
|
||||
the_context->register_cpsr = new_level | arm_cpu_mode;
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ void rtems_exception_init_mngt(void)
|
||||
#define GET_U(x) ((x & 0x00800000) >> 23)
|
||||
#define GET_I(x) ((x & 0x02000000) >> 25)
|
||||
|
||||
#define GET_REG(r, ctx) (((uint32_t *)ctx)[r])
|
||||
#define SET_REG(r, ctx, v) (((uint32_t *)ctx)[r] = v)
|
||||
#define GET_REG(r, ctx) (((uint32_t *)ctx)[r])
|
||||
#define SET_REG(r, ctx, v) (((uint32_t *)ctx)[r] = v)
|
||||
#define GET_OFFSET(insn) (insn & 0xfff)
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* cpu.c: Remove extraneous spaces.
|
||||
|
||||
2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* cpu.c, rtems/score/cpu.h: Convert to "bool".
|
||||
|
||||
@@ -202,7 +202,7 @@ void _CPU_Context_Initialize(
|
||||
)
|
||||
{
|
||||
uint32_t stack_high; /* highest "stack aligned" address */
|
||||
stack_high = ((uint32_t )(stack_base) + size);
|
||||
stack_high = ((uint32_t)(stack_base) + size);
|
||||
|
||||
the_context->register_sp = stack_high;
|
||||
the_context->register_rets = (uint32_t) entry_point;
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* cpu.c: Remove extraneous spaces.
|
||||
|
||||
2008-08-21 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* rtems/score/types.h: Include stdbool.h.
|
||||
|
||||
@@ -233,13 +233,13 @@ void _CPU_Context_Initialize(
|
||||
void (*_entry_point)(void),
|
||||
int _is_fp )
|
||||
{
|
||||
_the_context->r15 = (uint32_t *) ((uint32_t ) (_stack_base) + (_size) );
|
||||
_the_context->r15 = (uint32_t *) ((uint32_t) (_stack_base) + (_size) );
|
||||
#if defined(__sh1__) || defined(__sh2__) || defined(__SH2E__)
|
||||
_the_context->sr = (_isr << 4) & 0x00f0 ;
|
||||
#else
|
||||
_the_context->sr = SH4_SR_MD | ((_isr << 4) & 0x00f0);
|
||||
#endif
|
||||
_the_context->pr = (uint32_t *) _entry_point ;
|
||||
_the_context->pr = (uint32_t *) _entry_point ;
|
||||
|
||||
|
||||
#if 0 && SH_HAS_FPU
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* cpu.c: Remove extraneous spaces.
|
||||
|
||||
2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* cpu.c, rtems/score/cpu.h: Convert to "bool".
|
||||
|
||||
@@ -186,7 +186,7 @@ void _CPU_ISR_install_raw_handler(
|
||||
|
||||
*slot = _CPU_Trap_slot_template;
|
||||
|
||||
u32_handler = (uint32_t ) new_handler;
|
||||
u32_handler = (uint32_t) new_handler;
|
||||
|
||||
slot->mov_vector_l3 |= vector;
|
||||
slot->sethi_of_handler_to_l4 |=
|
||||
@@ -288,7 +288,7 @@ void _CPU_Context_Initialize(
|
||||
* based on the stack_high address.
|
||||
*/
|
||||
|
||||
stack_high = ((uint32_t )(stack_base) + size);
|
||||
stack_high = ((uint32_t)(stack_base) + size);
|
||||
stack_high &= ~(CPU_STACK_ALIGNMENT - 1);
|
||||
|
||||
the_size = size & ~(CPU_STACK_ALIGNMENT - 1);
|
||||
@@ -297,7 +297,7 @@ void _CPU_Context_Initialize(
|
||||
* See the README in this directory for a diagram of the stack.
|
||||
*/
|
||||
|
||||
the_context->o7 = ((uint32_t ) entry_point) - 8;
|
||||
the_context->o7 = ((uint32_t) entry_point) - 8;
|
||||
the_context->o6_sp = stack_high - CPU_MINIMUM_STACK_FRAME_SIZE;
|
||||
the_context->i6_fp = 0;
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* cpu.c: Remove extraneous spaces.
|
||||
|
||||
2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* cpu.c, rtems/score/cpu.h: Convert to "bool".
|
||||
|
||||
@@ -538,7 +538,7 @@ void _CPU_Context_Initialize(
|
||||
uint32_t _stack_high; /* highest "stack aligned" address */
|
||||
uint32_t _the_size;
|
||||
|
||||
jmp_addr = (uint32_t ) _entry_point;
|
||||
jmp_addr = (uint32_t) _entry_point;
|
||||
|
||||
/*
|
||||
* On CPUs with stacks which grow down, we build the stack
|
||||
@@ -546,10 +546,10 @@ void _CPU_Context_Initialize(
|
||||
* grow up, we build the stack based on the _stack_low address.
|
||||
*/
|
||||
|
||||
_stack_low = (uint32_t )(_stack_base) + CPU_STACK_ALIGNMENT - 1;
|
||||
_stack_low = (uint32_t)(_stack_base) + CPU_STACK_ALIGNMENT - 1;
|
||||
_stack_low &= ~(CPU_STACK_ALIGNMENT - 1);
|
||||
|
||||
_stack_high = (uint32_t )(_stack_base) + _size;
|
||||
_stack_high = (uint32_t)(_stack_base) + _size;
|
||||
_stack_high &= ~(CPU_STACK_ALIGNMENT - 1);
|
||||
|
||||
if (_stack_high > _stack_low)
|
||||
@@ -568,11 +568,11 @@ void _CPU_Context_Initialize(
|
||||
*(Context_Control_overlay *)_the_context =
|
||||
_CPU_Context_Default_with_ISRs_disabled;
|
||||
|
||||
addr = (uint32_t *)_the_context;
|
||||
addr = (uint32_t *)_the_context;
|
||||
|
||||
#if defined(__hppa__)
|
||||
*(addr + RP_OFF) = jmp_addr;
|
||||
*(addr + SP_OFF) = (uint32_t )(_stack_low + CPU_FRAME_SIZE);
|
||||
*(addr + SP_OFF) = (uint32_t)(_stack_low + CPU_FRAME_SIZE);
|
||||
|
||||
/*
|
||||
* See if we are using shared libraries by checking
|
||||
@@ -583,7 +583,7 @@ void _CPU_Context_Initialize(
|
||||
|
||||
if (jmp_addr & 0x40000000) {
|
||||
jmp_addr &= 0xfffffffc;
|
||||
*(addr + RP_OFF) = *(uint32_t *)jmp_addr;
|
||||
*(addr + RP_OFF) = *(uint32_t *)jmp_addr;
|
||||
}
|
||||
#elif defined(__sparc__)
|
||||
|
||||
@@ -595,8 +595,8 @@ void _CPU_Context_Initialize(
|
||||
asm ("ta 0x03"); /* flush registers */
|
||||
|
||||
*(addr + RP_OFF) = jmp_addr + ADDR_ADJ_OFFSET;
|
||||
*(addr + SP_OFF) = (uint32_t )(_stack_high - CPU_FRAME_SIZE);
|
||||
*(addr + FP_OFF) = (uint32_t )(_stack_high);
|
||||
*(addr + SP_OFF) = (uint32_t)(_stack_high - CPU_FRAME_SIZE);
|
||||
*(addr + FP_OFF) = (uint32_t)(_stack_high);
|
||||
|
||||
#elif defined(__i386__)
|
||||
|
||||
@@ -893,7 +893,7 @@ void _CPU_Stray_signal(int sig_num)
|
||||
* _CPU_Fatal_error
|
||||
*/
|
||||
|
||||
void _CPU_Fatal_error(uint32_t error)
|
||||
void _CPU_Fatal_error(uint32_t error)
|
||||
{
|
||||
setitimer(ITIMER_REAL, 0, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user