aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-01-30 07:30:46 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:30:46 -0500
commitefd1ca52d04d2f6df337a3332cee56cd60e6d4c4 (patch)
treecf1e630d25cc45f399388f5fc996d86cf3bcf9ff /include
parent13abd0e50433092c41551bc13c32268028b6d663 (diff)
x86: TLS cleanup
This consolidates the four different places that implemented the same encoding magic for the GDT-slot 32-bit TLS support. The old tls32.c was renamed and is now only slightly modified to be the shared implementation. Signed-off-by: Roland McGrath <roland@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Zachary Amsden <zach@vmware.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> 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/ia32.h6
-rw-r--r--include/asm-x86/ptrace.h11
2 files changed, 11 insertions, 6 deletions
diff --git a/include/asm-x86/ia32.h b/include/asm-x86/ia32.h
index 0190b7c4e319..aa9733206e29 100644
--- a/include/asm-x86/ia32.h
+++ b/include/asm-x86/ia32.h
@@ -159,12 +159,6 @@ struct ustat32 {
159#define IA32_STACK_TOP IA32_PAGE_OFFSET 159#define IA32_STACK_TOP IA32_PAGE_OFFSET
160 160
161#ifdef __KERNEL__ 161#ifdef __KERNEL__
162struct user_desc;
163struct siginfo_t;
164int do_get_thread_area(struct thread_struct *t, struct user_desc __user *info);
165int do_set_thread_area(struct thread_struct *t, struct user_desc __user *info);
166int ia32_child_tls(struct task_struct *p, struct pt_regs *childregs);
167
168struct linux_binprm; 162struct linux_binprm;
169extern int ia32_setup_arg_pages(struct linux_binprm *bprm, 163extern int ia32_setup_arg_pages(struct linux_binprm *bprm,
170 unsigned long stack_top, int exec_stack); 164 unsigned long stack_top, int exec_stack);
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h
index 51ddb2590870..105d1534eaf4 100644
--- a/include/asm-x86/ptrace.h
+++ b/include/asm-x86/ptrace.h
@@ -137,6 +137,17 @@ enum {
137}; 137};
138#endif /* __KERNEL__ */ 138#endif /* __KERNEL__ */
139#endif /* !__i386__ */ 139#endif /* !__i386__ */
140
141#ifdef __KERNEL__
142
143struct user_desc;
144extern int do_get_thread_area(struct task_struct *p, int idx,
145 struct user_desc __user *info);
146extern int do_set_thread_area(struct task_struct *p, int idx,
147 struct user_desc __user *info, int can_allocate);
148
149#endif /* __KERNEL__ */
150
140#endif /* !__ASSEMBLY__ */ 151#endif /* !__ASSEMBLY__ */
141 152
142#endif 153#endif