1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _ASM_X86_PTRACE_H
3 #define _ASM_X86_PTRACE_H
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. */
43 * C ABI says these regs are callee-preserved. They aren't saved on kernel entry
44 * unless syscall needs a complete, fully filled "struct pt_regs".
52 /* These regs are callee-clobbered. Always saved on kernel entry. */
63 * On syscall entry, this is syscall#. On CPU exception, this is error code.
64 * On hw interrupt, it's IRQ number:
66 unsigned long orig_rax;
67 /* Return frame for iretq */
73 /* top of stack page */
76 #endif /* !__i386__ */
80 #endif /* !__ASSEMBLY__ */
82 #endif /* _ASM_X86_PTRACE_H */