diff options
author | Roland McGrath <roland@redhat.com> | 2008-01-30 07:31:55 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:55 -0500 |
commit | 60b3b9af35aad66345e395be911e46fb8443f0c5 (patch) | |
tree | a12ce3f11c2cb77f6b791351ec7035c80e9a2041 /include | |
parent | 5a4646a4efed8c835f76c3b88f3155f6ab5b8d9b (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')
-rw-r--r-- | include/asm-x86/elf.h | 68 | ||||
-rw-r--r-- | include/asm-x86/i387.h | 14 | ||||
-rw-r--r-- | include/asm-x86/math_emu.h | 5 |
3 files changed, 0 insertions, 87 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) |
131 | extern unsigned int vdso_enabled; | 109 | extern 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") |
199 | extern void set_personality_64bit(void); | 142 | extern void set_personality_64bit(void); |
@@ -236,18 +179,7 @@ extern int vdso_enabled; | |||
236 | 179 | ||
237 | struct task_struct; | 180 | struct task_struct; |
238 | 181 | ||
239 | extern int dump_task_regs (struct task_struct *, elf_gregset_t *); | ||
240 | extern 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 |
246 | extern 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 | ||
diff --git a/include/asm-x86/i387.h b/include/asm-x86/i387.h index de435b9114df..ba8105ca822b 100644 --- a/include/asm-x86/i387.h +++ b/include/asm-x86/i387.h | |||
@@ -328,20 +328,6 @@ static inline void clear_fpu(struct task_struct *tsk) | |||
328 | #endif /* CONFIG_X86_64 */ | 328 | #endif /* CONFIG_X86_64 */ |
329 | 329 | ||
330 | /* | 330 | /* |
331 | * ptrace request handlers... | ||
332 | */ | ||
333 | extern int get_fpregs(struct user_i387_struct __user *buf, | ||
334 | struct task_struct *tsk); | ||
335 | extern int set_fpregs(struct task_struct *tsk, | ||
336 | struct user_i387_struct __user *buf); | ||
337 | |||
338 | struct user_fxsr_struct; | ||
339 | extern int get_fpxregs(struct user_fxsr_struct __user *buf, | ||
340 | struct task_struct *tsk); | ||
341 | extern int set_fpxregs(struct task_struct *tsk, | ||
342 | struct user_fxsr_struct __user *buf); | ||
343 | |||
344 | /* | ||
345 | * i387 state interaction | 331 | * i387 state interaction |
346 | */ | 332 | */ |
347 | static inline unsigned short get_fpu_cwd(struct task_struct *tsk) | 333 | static inline unsigned short get_fpu_cwd(struct task_struct *tsk) |
diff --git a/include/asm-x86/math_emu.h b/include/asm-x86/math_emu.h index a4b0aa3320e6..9bf4ae93ab10 100644 --- a/include/asm-x86/math_emu.h +++ b/include/asm-x86/math_emu.h | |||
@@ -1,11 +1,6 @@ | |||
1 | #ifndef _I386_MATH_EMU_H | 1 | #ifndef _I386_MATH_EMU_H |
2 | #define _I386_MATH_EMU_H | 2 | #define _I386_MATH_EMU_H |
3 | 3 | ||
4 | #include <asm/sigcontext.h> | ||
5 | |||
6 | int restore_i387_soft(void *s387, struct _fpstate __user *buf); | ||
7 | int save_i387_soft(void *s387, struct _fpstate __user *buf); | ||
8 | |||
9 | /* This structure matches the layout of the data saved to the stack | 4 | /* This structure matches the layout of the data saved to the stack |
10 | following a device-not-present interrupt, part of it saved | 5 | following a device-not-present interrupt, part of it saved |
11 | automatically by the 80386/80486. | 6 | automatically by the 80386/80486. |