]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - arch/arm/include/asm/ptrace.h
Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm
[~shefty/rdma-dev.git] / arch / arm / include / asm / ptrace.h
index 91ef6c231c478901f4c0fc39369ea158100b9f64..142d6ae4123150453d99aa9566767555afaa76f4 100644 (file)
@@ -255,6 +255,11 @@ static inline unsigned long user_stack_pointer(struct pt_regs *regs)
        return regs->ARM_sp;
 }
 
+#define current_pt_regs(void) ({                               \
+       register unsigned long sp asm ("sp");                   \
+       (struct pt_regs *)((sp | (THREAD_SIZE - 1)) - 7) - 1;   \
+})
+
 #endif /* __KERNEL__ */
 
 #endif /* __ASSEMBLY__ */