1 #ifndef _X86_64_PTRACE_H
2 #define _X86_64_PTRACE_H
4 #include <asm/ptrace-abi.h>
15 /* arguments: non interrupts/non tracing syscalls only save upto here*/
25 unsigned long orig_rax
;
26 /* end of arguments */
27 /* cpu exception frame or undefined */
33 /* top of stack page */
38 #if defined(__KERNEL__) && !defined(__ASSEMBLY__)
39 #define user_mode(regs) (!!((regs)->cs & 3))
40 #define user_mode_vm(regs) user_mode(regs)
41 #define instruction_pointer(regs) ((regs)->rip)
42 #define regs_return_value(regs) ((regs)->rax)
44 extern unsigned long profile_pc(struct pt_regs
*regs
);
45 void signal_fault(struct pt_regs
*regs
, void __user
*frame
, char *where
);
50 convert_rip_to_linear(struct task_struct
*child
, struct pt_regs
*regs
);
63 EF_IOPL_RING0
= 0x00000000,
64 EF_IOPL_RING1
= 0x00001000,
65 EF_IOPL_RING2
= 0x00002000,
66 EF_NT
= 0x00004000, /* nested task */
67 EF_RF
= 0x00010000, /* resume */
68 EF_VM
= 0x00020000, /* virtual mode */
69 EF_AC
= 0x00040000, /* alignment */
70 EF_VIF
= 0x00080000, /* virtual interrupt */
71 EF_VIP
= 0x00100000, /* virtual interrupt pending */
72 EF_ID
= 0x00200000, /* id */