]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-x86_64/ptrace.h
i386: add reference to the arguments
[linux-2.6-omap-h63xx.git] / include / asm-x86_64 / ptrace.h
index ab827dc381d7f3c0afe18b37811d817b7b6e7d73..7f166ccb0606786991e931c9995c6dfe9514809b 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _X86_64_PTRACE_H
 #define _X86_64_PTRACE_H
 
+#include <linux/compiler.h>    /* For __user */
 #include <asm/ptrace-abi.h>
 
 #ifndef __ASSEMBLY__
@@ -39,6 +40,8 @@ struct pt_regs {
 #define user_mode(regs) (!!((regs)->cs & 3))
 #define user_mode_vm(regs) user_mode(regs)
 #define instruction_pointer(regs) ((regs)->rip)
+#define regs_return_value(regs) ((regs)->rax)
+
 extern unsigned long profile_pc(struct pt_regs *regs);
 void signal_fault(struct pt_regs *regs, void __user *frame, char *where);