diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-17 17:34:34 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-04-17 17:34:34 +0000 |
commit | 340d782ab8d80e786b9c6a859a40d89c6a644af9 (patch) | |
tree | ecd56b12922f39076a7bb154b63744c8ca7e2128 /cpukit/score | |
parent | Generate. (diff) | |
download | rtems-340d782ab8d80e786b9c6a859a40d89c6a644af9.tar.bz2 |
2010-04-17 Mike Frysinger <vapier.adi@gmail.com>
* cpu.c: Blackfin ABI requires L registers to be 0 upon function entry.
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/cpu/bfin/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/score/cpu/bfin/cpu.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/score/cpu/bfin/ChangeLog b/cpukit/score/cpu/bfin/ChangeLog index b7de26fb2f..5f276f92e1 100644 --- a/cpukit/score/cpu/bfin/ChangeLog +++ b/cpukit/score/cpu/bfin/ChangeLog @@ -1,3 +1,7 @@ +2010-04-17 Mike Frysinger <vapier.adi@gmail.com> + + * cpu.c: Blackfin ABI requires L registers to be 0 upon function entry. + 2010-03-27 Joel Sherrill <joel.sherrill@oarcorp.com> * Makefile.am: Remove unused file. diff --git a/cpukit/score/cpu/bfin/cpu.c b/cpukit/score/cpu/bfin/cpu.c index 58b96bae54..4afab4ab7c 100644 --- a/cpukit/score/cpu/bfin/cpu.c +++ b/cpukit/score/cpu/bfin/cpu.c @@ -195,6 +195,12 @@ void _CPU_Context_Initialize( the_context->register_sp = stack_high; 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; } |