aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/sysdep-i386/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/sysdep-i386/ptrace.h')
-rw-r--r--arch/um/include/sysdep-i386/ptrace.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/arch/um/include/sysdep-i386/ptrace.h b/arch/um/include/sysdep-i386/ptrace.h
index b843941acd1d..c0019d92fc73 100644
--- a/arch/um/include/sysdep-i386/ptrace.h
+++ b/arch/um/include/sysdep-i386/ptrace.h
@@ -53,7 +53,7 @@ extern int sysemu_supported;
53#endif 53#endif
54 54
55struct uml_pt_regs { 55struct uml_pt_regs {
56 unsigned long regs[MAX_REG_NR]; 56 unsigned long gp[MAX_REG_NR];
57 unsigned long fp[HOST_FP_SIZE]; 57 unsigned long fp[HOST_FP_SIZE];
58 unsigned long xfp[HOST_XFP_SIZE]; 58 unsigned long xfp[HOST_XFP_SIZE];
59 struct faultinfo faultinfo; 59 struct faultinfo faultinfo;
@@ -63,23 +63,23 @@ struct uml_pt_regs {
63 63
64#define EMPTY_UML_PT_REGS { } 64#define EMPTY_UML_PT_REGS { }
65 65
66#define UPT_IP(r) REGS_IP((r)->regs) 66#define UPT_IP(r) REGS_IP((r)->gp)
67#define UPT_SP(r) REGS_SP((r)->regs) 67#define UPT_SP(r) REGS_SP((r)->gp)
68#define UPT_EFLAGS(r) REGS_EFLAGS((r)->regs) 68#define UPT_EFLAGS(r) REGS_EFLAGS((r)->gp)
69#define UPT_EAX(r) REGS_EAX((r)->regs) 69#define UPT_EAX(r) REGS_EAX((r)->gp)
70#define UPT_EBX(r) REGS_EBX((r)->regs) 70#define UPT_EBX(r) REGS_EBX((r)->gp)
71#define UPT_ECX(r) REGS_ECX((r)->regs) 71#define UPT_ECX(r) REGS_ECX((r)->gp)
72#define UPT_EDX(r) REGS_EDX((r)->regs) 72#define UPT_EDX(r) REGS_EDX((r)->gp)
73#define UPT_ESI(r) REGS_ESI((r)->regs) 73#define UPT_ESI(r) REGS_ESI((r)->gp)
74#define UPT_EDI(r) REGS_EDI((r)->regs) 74#define UPT_EDI(r) REGS_EDI((r)->gp)
75#define UPT_EBP(r) REGS_EBP((r)->regs) 75#define UPT_EBP(r) REGS_EBP((r)->gp)
76#define UPT_ORIG_EAX(r) ((r)->syscall) 76#define UPT_ORIG_EAX(r) ((r)->syscall)
77#define UPT_CS(r) REGS_CS((r)->regs) 77#define UPT_CS(r) REGS_CS((r)->gp)
78#define UPT_SS(r) REGS_SS((r)->regs) 78#define UPT_SS(r) REGS_SS((r)->gp)
79#define UPT_DS(r) REGS_DS((r)->regs) 79#define UPT_DS(r) REGS_DS((r)->gp)
80#define UPT_ES(r) REGS_ES((r)->regs) 80#define UPT_ES(r) REGS_ES((r)->gp)
81#define UPT_FS(r) REGS_FS((r)->regs) 81#define UPT_FS(r) REGS_FS((r)->gp)
82#define UPT_GS(r) REGS_GS((r)->regs) 82#define UPT_GS(r) REGS_GS((r)->gp)
83 83
84#define UPT_SYSCALL_ARG1(r) UPT_EBX(r) 84#define UPT_SYSCALL_ARG1(r) UPT_EBX(r)
85#define UPT_SYSCALL_ARG2(r) UPT_ECX(r) 85#define UPT_SYSCALL_ARG2(r) UPT_ECX(r)
@@ -161,7 +161,7 @@ struct syscall_args {
161#define UPT_SET_SYSCALL_RETURN(r, res) \ 161#define UPT_SET_SYSCALL_RETURN(r, res) \
162 REGS_SET_SYSCALL_RETURN((r)->regs, (res)) 162 REGS_SET_SYSCALL_RETURN((r)->regs, (res))
163 163
164#define UPT_RESTART_SYSCALL(r) REGS_RESTART_SYSCALL((r)->regs) 164#define UPT_RESTART_SYSCALL(r) REGS_RESTART_SYSCALL((r)->gp)
165 165
166#define UPT_ORIG_SYSCALL(r) UPT_EAX(r) 166#define UPT_ORIG_SYSCALL(r) UPT_EAX(r)
167#define UPT_SYSCALL_NR(r) UPT_ORIG_EAX(r) 167#define UPT_SYSCALL_NR(r) UPT_ORIG_EAX(r)