summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/bfin/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/cpu/bfin/cpu.c')
-rw-r--r--cpukit/score/cpu/bfin/cpu.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/cpukit/score/cpu/bfin/cpu.c b/cpukit/score/cpu/bfin/cpu.c
index 4afab4ab7c..f342e75e44 100644
--- a/cpukit/score/cpu/bfin/cpu.c
+++ b/cpukit/score/cpu/bfin/cpu.c
@@ -192,15 +192,10 @@ void _CPU_Context_Initialize(
uint32_t stack_high; /* highest "stack aligned" address */
stack_high = ((uint32_t)(stack_base) + size);
- the_context->register_sp = stack_high;
+ /* blackfin abi requires caller to reserve 12 bytes on stack */
+ the_context->register_sp = stack_high - 12;
the_context->register_rets = (uint32_t) entry_point;
the_context->imask = new_level ? 0 : 0xffff;
-
- /* Blackfin C ABI requires L regs to be 0 upon func entry. */
- the_context->register_l0 = 0;
- the_context->register_l1 = 0;
- the_context->register_l2 = 0;
- the_context->register_l3 = 0;
}