diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/um/include/sysdep-i386/ptrace_user.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/um/include/sysdep-i386/ptrace_user.h')
-rw-r--r-- | arch/um/include/sysdep-i386/ptrace_user.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/arch/um/include/sysdep-i386/ptrace_user.h b/arch/um/include/sysdep-i386/ptrace_user.h new file mode 100644 index 000000000000..eca8066e7a43 --- /dev/null +++ b/arch/um/include/sysdep-i386/ptrace_user.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) | ||
3 | * Licensed under the GPL | ||
4 | */ | ||
5 | |||
6 | #ifndef __SYSDEP_I386_PTRACE_USER_H__ | ||
7 | #define __SYSDEP_I386_PTRACE_USER_H__ | ||
8 | |||
9 | #include <sys/ptrace.h> | ||
10 | #include <linux/ptrace.h> | ||
11 | #include <asm/ptrace.h> | ||
12 | |||
13 | #define PT_OFFSET(r) ((r) * sizeof(long)) | ||
14 | |||
15 | #define PT_SYSCALL_NR(regs) ((regs)[ORIG_EAX]) | ||
16 | #define PT_SYSCALL_NR_OFFSET PT_OFFSET(ORIG_EAX) | ||
17 | |||
18 | #define PT_SYSCALL_ARG1_OFFSET PT_OFFSET(EBX) | ||
19 | #define PT_SYSCALL_ARG2_OFFSET PT_OFFSET(ECX) | ||
20 | #define PT_SYSCALL_ARG3_OFFSET PT_OFFSET(EDX) | ||
21 | #define PT_SYSCALL_ARG4_OFFSET PT_OFFSET(ESI) | ||
22 | #define PT_SYSCALL_ARG5_OFFSET PT_OFFSET(EDI) | ||
23 | |||
24 | #define PT_SYSCALL_RET_OFFSET PT_OFFSET(EAX) | ||
25 | |||
26 | #define PT_IP_OFFSET PT_OFFSET(EIP) | ||
27 | #define PT_IP(regs) ((regs)[EIP]) | ||
28 | #define PT_SP(regs) ((regs)[UESP]) | ||
29 | |||
30 | #ifndef FRAME_SIZE | ||
31 | #define FRAME_SIZE (17) | ||
32 | #endif | ||
33 | #define FRAME_SIZE_OFFSET (FRAME_SIZE * sizeof(unsigned long)) | ||
34 | |||
35 | #define FP_FRAME_SIZE (27) | ||
36 | #define FPX_FRAME_SIZE (128) | ||
37 | |||
38 | #ifdef PTRACE_GETREGS | ||
39 | #define UM_HAVE_GETREGS | ||
40 | #endif | ||
41 | |||
42 | #ifdef PTRACE_SETREGS | ||
43 | #define UM_HAVE_SETREGS | ||
44 | #endif | ||
45 | |||
46 | #ifdef PTRACE_GETFPREGS | ||
47 | #define UM_HAVE_GETFPREGS | ||
48 | #endif | ||
49 | |||
50 | #ifdef PTRACE_SETFPREGS | ||
51 | #define UM_HAVE_SETFPREGS | ||
52 | #endif | ||
53 | |||
54 | #ifdef PTRACE_GETFPXREGS | ||
55 | #define UM_HAVE_GETFPXREGS | ||
56 | #endif | ||
57 | |||
58 | #ifdef PTRACE_SETFPXREGS | ||
59 | #define UM_HAVE_SETFPXREGS | ||
60 | #endif | ||
61 | |||
62 | #endif | ||