Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196334
b: refs/heads/master
c: c75fbb0
h: refs/heads/master
v: v3
  • Loading branch information
Jason Wessel committed May 21, 2010
1 parent 7d0306c commit abec1b6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4063eb5fa4ef514077f84f47a7759ab255eddda5
refs/heads/master: c75fbb05b523571c0fdc48d4b968b73f0e20acbb
6 changes: 6 additions & 0 deletions trunk/arch/sparc/kernel/kgdb_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ void kgdb_arch_exit(void)
{
}

void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long ip)
{
regs->pc = ip;
regs->npc = regs->pc + 4;
}

struct kgdb_arch arch_kgdb_ops = {
/* Breakpoint instruction: ta 0x7d */
.gdb_bpt_instr = { 0x91, 0xd0, 0x20, 0x7d },
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/sparc/kernel/kgdb_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit abec1b6

Please sign in to comment.