summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/kgdb_64.c
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2010-05-20 21:04:19 -0500
committerJason Wessel <jason.wessel@windriver.com>2010-05-20 21:04:19 -0500
commitc75fbb05b523571c0fdc48d4b968b73f0e20acbb (patch)
tree14f6d3846bbfe434b9d9ff2adf3ee9b51b9131a0 /arch/sparc/kernel/kgdb_64.c
parent4063eb5fa4ef514077f84f47a7759ab255eddda5 (diff)
downloadblackbird-obmc-linux-c75fbb05b523571c0fdc48d4b968b73f0e20acbb.tar.gz
blackbird-obmc-linux-c75fbb05b523571c0fdc48d4b968b73f0e20acbb.zip
kgdb,sparc: Add in kgdb_arch_set_pc for sparc
The new debug core api requires all architectures that use to debug core to implement a function to set the program counter. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/kgdb_64.c')
-rw-r--r--arch/sparc/kernel/kgdb_64.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc/kernel/kgdb_64.c b/arch/sparc/kernel/kgdb_64.c
index 0a2bd0f99fc1..768290a6c028 100644
--- a/arch/sparc/kernel/kgdb_64.c
+++ b/arch/sparc/kernel/kgdb_64.c
@@ -181,6 +181,12 @@ void kgdb_arch_exit(void)
{
}
+void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long ip)
+{
+ regs->tpc = ip;
+ regs->tnpc = regs->tpc + 4;
+}
+
struct kgdb_arch arch_kgdb_ops = {
/* Breakpoint instruction: ta 0x72 */
.gdb_bpt_instr = { 0x91, 0xd0, 0x20, 0x72 },
OpenPOWER on IntegriCloud