Commit 7fe1a912 authored by Sonic Zhang's avatar Sonic Zhang Committed by Jason Wessel

blackfin,kgdb: Do not put PC in gdb_regs into retx.

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 <vapier@gentoo.org>
Signed-off-by: default avatarSonic Zhang <sonic.adi@gmail.com>
Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
parent 0fde6637
...@@ -133,7 +133,7 @@ void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) ...@@ -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->lb1 = gdb_regs[BFIN_LB1];
regs->usp = gdb_regs[BFIN_USP]; regs->usp = gdb_regs[BFIN_USP];
regs->syscfg = gdb_regs[BFIN_SYSCFG]; 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->retn = gdb_regs[BFIN_RETN];
regs->rete = gdb_regs[BFIN_RETE]; regs->rete = gdb_regs[BFIN_RETE];
regs->pc = gdb_regs[BFIN_PC]; regs->pc = gdb_regs[BFIN_PC];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment