Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258325
b: refs/heads/master
c: 1b59d87
h: refs/heads/master
i:
  258323: 6824dea
v: v3
  • Loading branch information
Jon Medhurst authored and Tixy committed Jul 13, 2011
1 parent 0a8e070 commit a8b2f88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: 0ab4c02ddae2e1d32d686a7773608f6c44fb2a83
refs/heads/master: 1b59d874660be7f790861ad849858cc009089515
6 changes: 0 additions & 6 deletions trunk/arch/arm/kernel/kprobes-arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@

#define is_r15(insn, bitpos) (((insn) & (0xf << bitpos)) == (0xf << bitpos))

/*
* Test if load/store instructions writeback the address register.
* if P (bit 24) == 0 or W (bit 21) == 1
*/
#define is_writeback(insn) ((insn ^ 0x01000000) & 0x01200000)

#define PSR_fs (PSR_f|PSR_s)

#define KPROBE_RETURN_INSTRUCTION 0xe1a0f00e /* mov pc, lr */
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/kernel/kprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ void __init arm_kprobe_decode_init(void);

extern kprobe_check_cc * const kprobe_condition_checks[16];

/*
* Test if load/store instructions writeback the address register.
* if P (bit 24) == 0 or W (bit 21) == 1
*/
#define is_writeback(insn) ((insn ^ 0x01000000) & 0x01200000)

#endif /* _ARM_KERNEL_KPROBES_H */

0 comments on commit a8b2f88

Please sign in to comment.