]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/sparc/kernel/kgdb_64.c
Merge branch 'for-3.0' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/asoc...
[karo-tx-linux.git] / arch / sparc / kernel / kgdb_64.c
index 0a2bd0f99fc1a3ce5d867d130bfc4085daaac503..768290a6c028a65d61bd5e356ba58549f8fdde4f 100644 (file)
@@ -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 },