ARM: OMAP2+: Prepare to move GPMC to drivers by platform data header
[linux/fpc-iii.git] / arch / x86 / um / shared / sysdep / ptrace_user.h
blob16cd6b5e71f75163416fab642010b9a9ccb48b04
1 #include <generated/user_constants.h>
3 #define PT_OFFSET(r) ((r) * sizeof(long))
5 #define PT_SYSCALL_NR(regs) ((regs)[HOST_ORIG_AX])
6 #define PT_SYSCALL_NR_OFFSET PT_OFFSET(HOST_ORIG_AX)
8 #define PT_SYSCALL_RET_OFFSET PT_OFFSET(HOST_AX)
10 #define REGS_IP_INDEX HOST_IP
11 #define REGS_SP_INDEX HOST_SP
13 #ifdef __i386__
14 #define FP_SIZE ((HOST_FPX_SIZE > HOST_FP_SIZE) ? HOST_FPX_SIZE : HOST_FP_SIZE)
15 #else
16 #define FP_SIZE HOST_FP_SIZE
19 * x86_64 FC3 doesn't define this in /usr/include/linux/ptrace.h even though
20 * it's defined in the kernel's include/linux/ptrace.h. Additionally, use the
21 * 2.4 name and value for 2.4 host compatibility.
23 #ifndef PTRACE_OLDSETOPTIONS
24 #define PTRACE_OLDSETOPTIONS 21
25 #endif
27 #endif