aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/sysdep-x86_64/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/sysdep-x86_64/ptrace.h')
-rw-r--r--arch/um/include/sysdep-x86_64/ptrace.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/arch/um/include/sysdep-x86_64/ptrace.h b/arch/um/include/sysdep-x86_64/ptrace.h
index ea4afdce59c1..ebc2fd5dc31c 100644
--- a/arch/um/include/sysdep-x86_64/ptrace.h
+++ b/arch/um/include/sysdep-x86_64/ptrace.h
@@ -85,7 +85,7 @@
85#define REGS_ERR(r) ((r)->fault_type) 85#define REGS_ERR(r) ((r)->fault_type)
86 86
87struct uml_pt_regs { 87struct uml_pt_regs {
88 unsigned long regs[MAX_REG_NR]; 88 unsigned long gp[MAX_REG_NR];
89 unsigned long fp[HOST_FP_SIZE]; 89 unsigned long fp[HOST_FP_SIZE];
90 struct faultinfo faultinfo; 90 struct faultinfo faultinfo;
91 long syscall; 91 long syscall;
@@ -94,36 +94,36 @@ struct uml_pt_regs {
94 94
95#define EMPTY_UML_PT_REGS { } 95#define EMPTY_UML_PT_REGS { }
96 96
97#define UPT_RBX(r) REGS_RBX((r)->regs) 97#define UPT_RBX(r) REGS_RBX((r)->gp)
98#define UPT_RCX(r) REGS_RCX((r)->regs) 98#define UPT_RCX(r) REGS_RCX((r)->gp)
99#define UPT_RDX(r) REGS_RDX((r)->regs) 99#define UPT_RDX(r) REGS_RDX((r)->gp)
100#define UPT_RSI(r) REGS_RSI((r)->regs) 100#define UPT_RSI(r) REGS_RSI((r)->gp)
101#define UPT_RDI(r) REGS_RDI((r)->regs) 101#define UPT_RDI(r) REGS_RDI((r)->gp)
102#define UPT_RBP(r) REGS_RBP((r)->regs) 102#define UPT_RBP(r) REGS_RBP((r)->gp)
103#define UPT_RAX(r) REGS_RAX((r)->regs) 103#define UPT_RAX(r) REGS_RAX((r)->gp)
104#define UPT_R8(r) REGS_R8((r)->regs) 104#define UPT_R8(r) REGS_R8((r)->gp)
105#define UPT_R9(r) REGS_R9((r)->regs) 105#define UPT_R9(r) REGS_R9((r)->gp)
106#define UPT_R10(r) REGS_R10((r)->regs) 106#define UPT_R10(r) REGS_R10((r)->gp)
107#define UPT_R11(r) REGS_R11((r)->regs) 107#define UPT_R11(r) REGS_R11((r)->gp)
108#define UPT_R12(r) REGS_R12((r)->regs) 108#define UPT_R12(r) REGS_R12((r)->gp)
109#define UPT_R13(r) REGS_R13((r)->regs) 109#define UPT_R13(r) REGS_R13((r)->gp)
110#define UPT_R14(r) REGS_R14((r)->regs) 110#define UPT_R14(r) REGS_R14((r)->gp)
111#define UPT_R15(r) REGS_R15((r)->regs) 111#define UPT_R15(r) REGS_R15((r)->gp)
112#define UPT_CS(r) REGS_CS((r)->regs) 112#define UPT_CS(r) REGS_CS((r)->gp)
113#define UPT_FS_BASE(r) REGS_FS_BASE((r)->regs) 113#define UPT_FS_BASE(r) REGS_FS_BASE((r)->gp)
114#define UPT_FS(r) REGS_FS((r)->regs) 114#define UPT_FS(r) REGS_FS((r)->gp)
115#define UPT_GS_BASE(r) REGS_GS_BASE((r)->regs) 115#define UPT_GS_BASE(r) REGS_GS_BASE((r)->gp)
116#define UPT_GS(r) REGS_GS((r)->regs) 116#define UPT_GS(r) REGS_GS((r)->gp)
117#define UPT_DS(r) REGS_DS((r)->regs) 117#define UPT_DS(r) REGS_DS((r)->gp)
118#define UPT_ES(r) REGS_ES((r)->regs) 118#define UPT_ES(r) REGS_ES((r)->gp)
119#define UPT_CS(r) REGS_CS((r)->regs) 119#define UPT_CS(r) REGS_CS((r)->gp)
120#define UPT_SS(r) REGS_SS((r)->regs) 120#define UPT_SS(r) REGS_SS((r)->gp)
121#define UPT_ORIG_RAX(r) REGS_ORIG_RAX((r)->regs) 121#define UPT_ORIG_RAX(r) REGS_ORIG_RAX((r)->gp)
122 122
123#define UPT_IP(r) REGS_IP((r)->regs) 123#define UPT_IP(r) REGS_IP((r)->gp)
124#define UPT_SP(r) REGS_SP((r)->regs) 124#define UPT_SP(r) REGS_SP((r)->gp)
125 125
126#define UPT_EFLAGS(r) REGS_EFLAGS((r)->regs) 126#define UPT_EFLAGS(r) REGS_EFLAGS((r)->gp)
127#define UPT_SYSCALL_NR(r) ((r)->syscall) 127#define UPT_SYSCALL_NR(r) ((r)->syscall)
128#define UPT_SYSCALL_RET(r) UPT_RAX(r) 128#define UPT_SYSCALL_RET(r) UPT_RAX(r)
129 129
@@ -228,7 +228,7 @@ struct syscall_args {
228#define UPT_SET_SYSCALL_RETURN(r, res) \ 228#define UPT_SET_SYSCALL_RETURN(r, res) \
229 REGS_SET_SYSCALL_RETURN((r)->regs, (res)) 229 REGS_SET_SYSCALL_RETURN((r)->regs, (res))
230 230
231#define UPT_RESTART_SYSCALL(r) REGS_RESTART_SYSCALL((r)->regs) 231#define UPT_RESTART_SYSCALL(r) REGS_RESTART_SYSCALL((r)->gp)
232 232
233#define UPT_SEGV_IS_FIXABLE(r) REGS_SEGV_IS_FIXABLE(&r->skas) 233#define UPT_SEGV_IS_FIXABLE(r) REGS_SEGV_IS_FIXABLE(&r->skas)
234 234