]> Pileus Git - ~andy/linux/blobdiff - arch/powerpc/include/asm/ptrace.h
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
[~andy/linux] / arch / powerpc / include / asm / ptrace.h
index 55380dc16f918c8977c989e9604a90cebc019fdb..5f995681bc1d4bc83198ac29e266610d187593cc 100644 (file)
@@ -96,6 +96,8 @@ extern unsigned long ptrace_get_reg(struct task_struct *task, int regno);
 extern int ptrace_put_reg(struct task_struct *task, int regno,
                          unsigned long data);
 
+#define current_pt_regs() \
+       ((struct pt_regs *)((unsigned long)current_thread_info() + THREAD_SIZE) - 1)
 /*
  * We use the least-significant bit of the trap field to indicate
  * whether we have saved the full set of registers, or only a