2008-04-17 Joel Sherrill <joel.sherrill@oarcorp.com>

* cpu.c: Add arm_cpu_mode so ARM BSP can overrid default value for
	cpsr.
This commit is contained in:
Joel Sherrill
2008-04-17 22:42:03 +00:00
parent 7625be518e
commit 4f2cd78838
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2008-04-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c: Add arm_cpu_mode so ARM BSP can overrid default value for
cpsr.
2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility.

View File

@@ -130,6 +130,8 @@ void _CPU_ISR_install_vector(
}
unsigned int arm_cpu_mode = 0x13;
void _CPU_Context_Initialize(
Context_Control *the_context,
uint32_t *stack_base,
@@ -141,7 +143,7 @@ void _CPU_Context_Initialize(
{
the_context->register_sp = (uint32_t )stack_base + size ;
the_context->register_lr = (uint32_t )entry_point;
the_context->register_cpsr = new_level | 0x13;
the_context->register_cpsr = new_level | arm_cpu_mode;
}