1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_ASM_X86_PTRACE_H
3 #define _UAPI_ASM_X86_PTRACE_H
5 #include <linux/compiler.h> /* For __user */
6 #include <asm/ptrace-abi.h>
7 #include <asm/processor-flags.h>
13 /* this struct defines the way the registers are stored on the
14 stack during a system call. */
38 #endif /* __KERNEL__ */
46 * C ABI says these regs are callee-preserved. They aren't saved on kernel entry
47 * unless syscall needs a complete, fully filled "struct pt_regs".
55 /* These regs are callee-clobbered. Always saved on kernel entry. */
66 * On syscall entry, this is syscall#. On CPU exception, this is error code.
67 * On hw interrupt, it's IRQ number:
69 unsigned long orig_rax
;
70 /* Return frame for iretq */
76 /* top of stack page */
79 #endif /* __KERNEL__ */
80 #endif /* !__i386__ */
84 #endif /* !__ASSEMBLY__ */
86 #endif /* _UAPI_ASM_X86_PTRACE_H */