aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/kprobes.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/kprobes.h')
-rw-r--r--arch/arm/kernel/kprobes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/kernel/kprobes.h b/arch/arm/kernel/kprobes.h
index 792f2316227a..4de2f37b1a85 100644
--- a/arch/arm/kernel/kprobes.h
+++ b/arch/arm/kernel/kprobes.h
@@ -36,4 +36,10 @@ void __init arm_kprobe_decode_init(void);
36 36
37extern kprobe_check_cc * const kprobe_condition_checks[16]; 37extern kprobe_check_cc * const kprobe_condition_checks[16];
38 38
39/*
40 * Test if load/store instructions writeback the address register.
41 * if P (bit 24) == 0 or W (bit 21) == 1
42 */
43#define is_writeback(insn) ((insn ^ 0x01000000) & 0x01200000)
44
39#endif /* _ARM_KERNEL_KPROBES_H */ 45#endif /* _ARM_KERNEL_KPROBES_H */