1 #ifndef _UAPI_ASM_X86_PTRACE_H
2 #define _UAPI_ASM_X86_PTRACE_H
4 #include <linux/compiler.h> /* For __user */
5 #include <asm/ptrace-abi.h>
6 #include <asm/processor-flags.h>
12 /* this struct defines the way the registers are stored on the
13 stack during a system call. */
37 #endif /* __KERNEL__ */
45 * C ABI says these regs are callee-preserved. They aren't saved on kernel entry
46 * unless syscall needs a complete, fully filled "struct pt_regs".
54 /* These regs are callee-clobbered. Always saved on kernel entry. */
65 * On syscall entry, this is syscall#. On CPU exception, this is error code.
66 * On hw interrupt, it's IRQ number:
68 unsigned long orig_rax
;
69 /* Return frame for iretq */
75 /* top of stack page */
78 #endif /* __KERNEL__ */
79 #endif /* !__i386__ */
83 #endif /* !__ASSEMBLY__ */
85 #endif /* _UAPI_ASM_X86_PTRACE_H */