Skip to content

Commit

Permalink
Blackfin: fix command line corruption with DEBUG_DOUBLEFAULT
Browse files Browse the repository at this point in the history
Commit 6b3087c (which introduced Blackfin SMP) broke command line passing
when the DEBUG_DOUBLEFAULT config option was enabled.  Switch the code to
using a scratch register and not R7 which holds the command line.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Mike Frysinger committed Jun 12, 2009
1 parent 89ecd50 commit 3708251
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions arch/blackfin/mach-common/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -124,25 +124,25 @@ ENTRY(__start)
* below
*/
GET_PDA(p0, r0);
r7 = [p0 + PDA_RETX];
r6 = [p0 + PDA_RETX];
p1.l = _init_saved_retx;
p1.h = _init_saved_retx;
[p1] = r7;
[p1] = r6;

r7 = [p0 + PDA_DCPLB];
r6 = [p0 + PDA_DCPLB];
p1.l = _init_saved_dcplb_fault_addr;
p1.h = _init_saved_dcplb_fault_addr;
[p1] = r7;
[p1] = r6;

r7 = [p0 + PDA_ICPLB];
r6 = [p0 + PDA_ICPLB];
p1.l = _init_saved_icplb_fault_addr;
p1.h = _init_saved_icplb_fault_addr;
[p1] = r7;
[p1] = r6;

r7 = [p0 + PDA_SEQSTAT];
r6 = [p0 + PDA_SEQSTAT];
p1.l = _init_saved_seqstat;
p1.h = _init_saved_seqstat;
[p1] = r7;
[p1] = r6;
#endif

/* Initialize stack pointer */
Expand Down

0 comments on commit 3708251

Please sign in to comment.