Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258342
b: refs/heads/master
c: 059987f
h: refs/heads/master
v: v3
  • Loading branch information
Jon Medhurst authored and Tixy committed Jul 13, 2011
1 parent 213029e commit ff34123
Show file tree
Hide file tree
Showing 2 changed files with 15 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: 02d194f64772aee91e7319ca033905b0bafee04c
refs/heads/master: 059987ffa7f8905fada25c8af1734e254209c55d
14 changes: 14 additions & 0 deletions trunk/arch/arm/kernel/kprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,20 @@ static inline unsigned long it_advance(unsigned long cpsr)
return cpsr;
}

static inline void __kprobes bx_write_pc(long pcv, struct pt_regs *regs)
{
long cpsr = regs->ARM_cpsr;
if (pcv & 0x1) {
cpsr |= PSR_T_BIT;
pcv &= ~0x1;
} else {
cpsr &= ~PSR_T_BIT;
pcv &= ~0x2; /* Avoid UNPREDICTABLE address allignment */
}
regs->ARM_cpsr = cpsr;
regs->ARM_pc = pcv;
}

void __kprobes kprobe_simulate_nop(struct kprobe *p, struct pt_regs *regs);
void __kprobes kprobe_emulate_none(struct kprobe *p, struct pt_regs *regs);

Expand Down

0 comments on commit ff34123

Please sign in to comment.