Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26510
b: refs/heads/master
c: 0ccde0a
h: refs/heads/master
v: v3
  • Loading branch information
Ananth N Mavinakayanahalli authored and Paul Mackerras committed May 3, 2006
1 parent be8e869 commit 9c093ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 054d8ff37710efaebd1998ce94d366df315a354f
refs/heads/master: 0ccde0a290b44b8296b82a7683b4c299eb51ba6b
14 changes: 7 additions & 7 deletions trunk/arch/powerpc/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ void __kprobes arch_remove_kprobe(struct kprobe *p)

static void __kprobes prepare_singlestep(struct kprobe *p, struct pt_regs *regs)
{
kprobe_opcode_t insn = *p->ainsn.insn;

regs->msr |= MSR_SE;

/* single step inline if it is a trap variant */
if (is_trap(insn))
regs->nip = (unsigned long)p->addr;
else
regs->nip = (unsigned long)p->ainsn.insn;
/*
* On powerpc we should single step on the original
* instruction even if the probed insn is a trap
* variant as values in regs could play a part in
* if the trap is taken or not
*/
regs->nip = (unsigned long)p->ainsn.insn;
}

static void __kprobes save_previous_kprobe(struct kprobe_ctlblk *kcb)
Expand Down

0 comments on commit 9c093ce

Please sign in to comment.