summaryrefslogtreecommitdiff
path: root/include/asm-arm/proc-armv/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/proc-armv/ptrace.h')
-rw-r--r--include/asm-arm/proc-armv/ptrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-arm/proc-armv/ptrace.h b/include/asm-arm/proc-armv/ptrace.h
index 51708b9..b32edfc 100644
--- a/include/asm-arm/proc-armv/ptrace.h
+++ b/include/asm-arm/proc-armv/ptrace.h
@@ -61,6 +61,8 @@ struct pt_regs {
#define ARM_r0 uregs[0]
#define ARM_ORIG_r0 uregs[17]
+#define instruction_pointer(regs) ((regs)->ARM_ip)
+
#ifdef __KERNEL__
#define user_mode(regs) \