1 #ifndef _ASM_X86_PTRACE_ABI_H
2 #define _ASM_X86_PTRACE_ABI_H
27 #if defined(__ASSEMBLY__) || defined(__FRAME_OFFSETS)
29 * C ABI says these regs are callee-preserved. They aren't saved on kernel entry
30 * unless syscall needs a complete, fully filled "struct pt_regs".
38 /* These regs are callee-clobbered. Always saved on kernel entry. */
49 * On syscall entry, this is syscall#. On CPU exception, this is error code.
50 * On hw interrupt, it's IRQ number:
53 /* Return frame for iretq */
59 #endif /* __ASSEMBLY__ */
61 /* top of stack page */
62 #define FRAME_SIZE 168
64 #endif /* !__i386__ */
66 /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
67 #define PTRACE_GETREGS 12
68 #define PTRACE_SETREGS 13
69 #define PTRACE_GETFPREGS 14
70 #define PTRACE_SETFPREGS 15
71 #define PTRACE_GETFPXREGS 18
72 #define PTRACE_SETFPXREGS 19
74 #define PTRACE_OLDSETOPTIONS 21
76 /* only useful for access 32bit programs / kernels */
77 #define PTRACE_GET_THREAD_AREA 25
78 #define PTRACE_SET_THREAD_AREA 26
81 # define PTRACE_ARCH_PRCTL 30
84 #define PTRACE_SYSEMU 31
85 #define PTRACE_SYSEMU_SINGLESTEP 32
87 #define PTRACE_SINGLEBLOCK 33 /* resume execution until next branch */
90 #include <linux/types.h>
93 #endif /* _ASM_X86_PTRACE_ABI_H */