aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/elf.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-01-30 07:31:55 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:55 -0500
commit60b3b9af35aad66345e395be911e46fb8443f0c5 (patch)
treea12ce3f11c2cb77f6b791351ec7035c80e9a2041 /include/asm-x86/elf.h
parent5a4646a4efed8c835f76c3b88f3155f6ab5b8d9b (diff)
x86: x86 user_regset cleanup
This removes a bunch of dead code that is no longer needed now that the user_regset interfaces are being used for all these jobs. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/elf.h')
-rw-r--r--include/asm-x86/elf.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/include/asm-x86/elf.h b/include/asm-x86/elf.h
index 123e2d599c6d..d6bf7421d7b0 100644
--- a/include/asm-x86/elf.h
+++ b/include/asm-x86/elf.h
@@ -104,28 +104,6 @@ typedef struct user_fxsr_struct elf_fpxregset_t;
104 _r->ax = 0; \ 104 _r->ax = 0; \
105} while (0) 105} while (0)
106 106
107/* regs is struct pt_regs, pr_reg is elf_gregset_t (which is
108 now struct_user_regs, they are different) */
109
110#define ELF_CORE_COPY_REGS(pr_reg, regs) \
111 pr_reg[0] = regs->bx; \
112 pr_reg[1] = regs->cx; \
113 pr_reg[2] = regs->dx; \
114 pr_reg[3] = regs->si; \
115 pr_reg[4] = regs->di; \
116 pr_reg[5] = regs->bp; \
117 pr_reg[6] = regs->ax; \
118 pr_reg[7] = regs->ds & 0xffff; \
119 pr_reg[8] = regs->es & 0xffff; \
120 pr_reg[9] = regs->fs & 0xffff; \
121 savesegment(gs,pr_reg[10]); \
122 pr_reg[11] = regs->orig_ax; \
123 pr_reg[12] = regs->ip; \
124 pr_reg[13] = regs->cs & 0xffff; \
125 pr_reg[14] = regs->flags; \
126 pr_reg[15] = regs->sp; \
127 pr_reg[16] = regs->ss & 0xffff;
128
129#define ELF_PLATFORM (utsname()->machine) 107#define ELF_PLATFORM (utsname()->machine)
130#define set_personality_64bit() do { } while (0) 108#define set_personality_64bit() do { } while (0)
131extern unsigned int vdso_enabled; 109extern unsigned int vdso_enabled;
@@ -159,41 +137,6 @@ extern unsigned int vdso_enabled;
159 clear_thread_flag(TIF_IA32); \ 137 clear_thread_flag(TIF_IA32); \
160} while (0) 138} while (0)
161 139
162/* regs is struct pt_regs, pr_reg is elf_gregset_t (which is
163 now struct_user_regs, they are different). Assumes current is the process
164 getting dumped. */
165
166#define ELF_CORE_COPY_REGS(pr_reg, regs) do { \
167 unsigned v; \
168 (pr_reg)[0] = (regs)->r15; \
169 (pr_reg)[1] = (regs)->r14; \
170 (pr_reg)[2] = (regs)->r13; \
171 (pr_reg)[3] = (regs)->r12; \
172 (pr_reg)[4] = (regs)->bp; \
173 (pr_reg)[5] = (regs)->bx; \
174 (pr_reg)[6] = (regs)->r11; \
175 (pr_reg)[7] = (regs)->r10; \
176 (pr_reg)[8] = (regs)->r9; \
177 (pr_reg)[9] = (regs)->r8; \
178 (pr_reg)[10] = (regs)->ax; \
179 (pr_reg)[11] = (regs)->cx; \
180 (pr_reg)[12] = (regs)->dx; \
181 (pr_reg)[13] = (regs)->si; \
182 (pr_reg)[14] = (regs)->di; \
183 (pr_reg)[15] = (regs)->orig_ax; \
184 (pr_reg)[16] = (regs)->ip; \
185 (pr_reg)[17] = (regs)->cs; \
186 (pr_reg)[18] = (regs)->flags; \
187 (pr_reg)[19] = (regs)->sp; \
188 (pr_reg)[20] = (regs)->ss; \
189 (pr_reg)[21] = current->thread.fs; \
190 (pr_reg)[22] = current->thread.gs; \
191 asm("movl %%ds,%0" : "=r" (v)); (pr_reg)[23] = v; \
192 asm("movl %%es,%0" : "=r" (v)); (pr_reg)[24] = v; \
193 asm("movl %%fs,%0" : "=r" (v)); (pr_reg)[25] = v; \
194 asm("movl %%gs,%0" : "=r" (v)); (pr_reg)[26] = v; \
195} while(0);
196
197/* I'm not sure if we can use '-' here */ 140/* I'm not sure if we can use '-' here */
198#define ELF_PLATFORM ("x86_64") 141#define ELF_PLATFORM ("x86_64")
199extern void set_personality_64bit(void); 142extern void set_personality_64bit(void);
@@ -236,18 +179,7 @@ extern int vdso_enabled;
236 179
237struct task_struct; 180struct task_struct;
238 181
239extern int dump_task_regs (struct task_struct *, elf_gregset_t *);
240extern int dump_task_fpu (struct task_struct *, elf_fpregset_t *);
241
242#define ELF_CORE_COPY_TASK_REGS(tsk, elf_regs) dump_task_regs(tsk, elf_regs)
243#define ELF_CORE_COPY_FPREGS(tsk, elf_fpregs) dump_task_fpu(tsk, elf_fpregs)
244
245#ifdef CONFIG_X86_32 182#ifdef CONFIG_X86_32
246extern int dump_task_extended_fpu (struct task_struct *,
247 struct user_fxsr_struct *);
248#define ELF_CORE_COPY_XFPREGS(tsk, elf_xfpregs) \
249 dump_task_extended_fpu(tsk, elf_xfpregs)
250#define ELF_CORE_XFPREG_TYPE NT_PRXFPREG
251 183
252#define VDSO_HIGH_BASE (__fix_to_virt(FIX_VDSO)) 184#define VDSO_HIGH_BASE (__fix_to_virt(FIX_VDSO))
253 185