Skip to content

Commit

Permalink
blackfin,kgdb: Do not put PC in gdb_regs into retx.
Browse files Browse the repository at this point in the history
In blackfin, kgdb is running in delayed exception IRQ5 other than in
exception IRQ3 directly.  Register reti other than retx in pt_regs is
the kgdb return address. So, don't put PC in gdb_regs into retx.

CC: Mike Frysinger <[email protected]>
Signed-off-by: Sonic Zhang <[email protected]>
Signed-off-by: Jason Wessel <[email protected]>
  • Loading branch information
Sonic Zhang authored and jwessel committed Jan 7, 2010
1 parent 0fde663 commit 7fe1a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/blackfin/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs)
regs->lb1 = gdb_regs[BFIN_LB1];
regs->usp = gdb_regs[BFIN_USP];
regs->syscfg = gdb_regs[BFIN_SYSCFG];
regs->retx = gdb_regs[BFIN_PC];
regs->retx = gdb_regs[BFIN_RETX];
regs->retn = gdb_regs[BFIN_RETN];
regs->rete = gdb_regs[BFIN_RETE];
regs->pc = gdb_regs[BFIN_PC];
Expand Down

0 comments on commit 7fe1a91

Please sign in to comment.