diff options
Diffstat (limited to 'arch/um/include/sysdep-i386/ptrace.h')
-rw-r--r-- | arch/um/include/sysdep-i386/ptrace.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/um/include/sysdep-i386/ptrace.h b/arch/um/include/sysdep-i386/ptrace.h index b45a72feb08c..c0ea4dbd042b 100644 --- a/arch/um/include/sysdep-i386/ptrace.h +++ b/arch/um/include/sysdep-i386/ptrace.h | |||
@@ -14,12 +14,7 @@ | |||
14 | #define MAX_REG_NR (UM_FRAME_SIZE / sizeof(unsigned long)) | 14 | #define MAX_REG_NR (UM_FRAME_SIZE / sizeof(unsigned long)) |
15 | #define MAX_REG_OFFSET (UM_FRAME_SIZE) | 15 | #define MAX_REG_OFFSET (UM_FRAME_SIZE) |
16 | 16 | ||
17 | #ifdef UML_CONFIG_PT_PROXY | ||
18 | extern void update_debugregs(int seq); | ||
19 | #else | ||
20 | static inline void update_debugregs(int seq) {} | 17 | static inline void update_debugregs(int seq) {} |
21 | #endif | ||
22 | |||
23 | 18 | ||
24 | /* syscall emulation path in ptrace */ | 19 | /* syscall emulation path in ptrace */ |
25 | 20 | ||
@@ -31,12 +26,6 @@ void set_using_sysemu(int value); | |||
31 | int get_using_sysemu(void); | 26 | int get_using_sysemu(void); |
32 | extern int sysemu_supported; | 27 | extern int sysemu_supported; |
33 | 28 | ||
34 | #ifdef UML_CONFIG_MODE_TT | ||
35 | #include "sysdep/sc.h" | ||
36 | #endif | ||
37 | |||
38 | #ifdef UML_CONFIG_MODE_SKAS | ||
39 | |||
40 | #include "skas_ptregs.h" | 29 | #include "skas_ptregs.h" |
41 | 30 | ||
42 | #define REGS_IP(r) ((r)[HOST_IP]) | 31 | #define REGS_IP(r) ((r)[HOST_IP]) |
@@ -60,20 +49,11 @@ extern int sysemu_supported; | |||
60 | 49 | ||
61 | #define REGS_RESTART_SYSCALL(r) IP_RESTART_SYSCALL(REGS_IP(r)) | 50 | #define REGS_RESTART_SYSCALL(r) IP_RESTART_SYSCALL(REGS_IP(r)) |
62 | 51 | ||
63 | #endif | ||
64 | #ifndef PTRACE_SYSEMU_SINGLESTEP | 52 | #ifndef PTRACE_SYSEMU_SINGLESTEP |
65 | #define PTRACE_SYSEMU_SINGLESTEP 32 | 53 | #define PTRACE_SYSEMU_SINGLESTEP 32 |
66 | #endif | 54 | #endif |
67 | 55 | ||
68 | union uml_pt_regs { | 56 | union uml_pt_regs { |
69 | #ifdef UML_CONFIG_MODE_TT | ||
70 | struct tt_regs { | ||
71 | long syscall; | ||
72 | void *sc; | ||
73 | struct faultinfo faultinfo; | ||
74 | } tt; | ||
75 | #endif | ||
76 | #ifdef UML_CONFIG_MODE_SKAS | ||
77 | struct skas_regs { | 57 | struct skas_regs { |
78 | unsigned long regs[MAX_REG_NR]; | 58 | unsigned long regs[MAX_REG_NR]; |
79 | unsigned long fp[HOST_FP_SIZE]; | 59 | unsigned long fp[HOST_FP_SIZE]; |
@@ -82,13 +62,10 @@ union uml_pt_regs { | |||
82 | long syscall; | 62 | long syscall; |
83 | int is_user; | 63 | int is_user; |
84 | } skas; | 64 | } skas; |
85 | #endif | ||
86 | }; | 65 | }; |
87 | 66 | ||
88 | #define EMPTY_UML_PT_REGS { } | 67 | #define EMPTY_UML_PT_REGS { } |
89 | 68 | ||
90 | extern int mode_tt; | ||
91 | |||
92 | #define UPT_SC(r) ((r)->tt.sc) | 69 | #define UPT_SC(r) ((r)->tt.sc) |
93 | #define UPT_IP(r) \ | 70 | #define UPT_IP(r) \ |
94 | __CHOOSE_MODE(SC_IP(UPT_SC(r)), REGS_IP((r)->skas.regs)) | 71 | __CHOOSE_MODE(SC_IP(UPT_SC(r)), REGS_IP((r)->skas.regs)) |