aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/processor_32.h
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-30 07:31:31 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:31:31 -0500
commitcb38d377337cadd73fe4c582f77c5273685aeb71 (patch)
tree79dfc538f91cc3695437177691ddfebd9f377708 /include/asm-x86/processor_32.h
parent7818a1e0294debee02d5135e17b89f28b8871887 (diff)
x86: unify thread struct.
The thread_struct is not fundamentally different between architectures, and this patch puts it in the common header. What's really unique for each of them is enclosed in ifdefs. Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/processor_32.h')
-rw-r--r--include/asm-x86/processor_32.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/include/asm-x86/processor_32.h b/include/asm-x86/processor_32.h
index 53037d1a6ae6..8cb05cec3cb9 100644
--- a/include/asm-x86/processor_32.h
+++ b/include/asm-x86/processor_32.h
@@ -176,43 +176,6 @@ typedef struct {
176 176
177#define ARCH_MIN_TASKALIGN 16 177#define ARCH_MIN_TASKALIGN 16
178 178
179struct thread_struct {
180/* cached TLS descriptors. */
181 struct desc_struct tls_array[GDT_ENTRY_TLS_ENTRIES];
182 unsigned long sp0;
183 unsigned long sysenter_cs;
184 unsigned long ip;
185 unsigned long sp;
186 unsigned long fs;
187 unsigned long gs;
188/* Hardware debugging registers */
189 unsigned long debugreg0;
190 unsigned long debugreg1;
191 unsigned long debugreg2;
192 unsigned long debugreg3;
193 unsigned long debugreg6;
194 unsigned long debugreg7;
195/* fault info */
196 unsigned long cr2, trap_no, error_code;
197/* floating point info */
198 union i387_union i387;
199/* virtual 86 mode info */
200 struct vm86_struct __user * vm86_info;
201 unsigned long screen_bitmap;
202 unsigned long v86flags, v86mask, saved_sp0;
203 unsigned int saved_fs, saved_gs;
204/* IO permissions */
205 unsigned long *io_bitmap_ptr;
206 unsigned long iopl;
207/* max allowed port in the bitmap, in bytes: */
208 unsigned long io_bitmap_max;
209/* MSR_IA32_DEBUGCTLMSR value to switch in if TIF_DEBUGCTLMSR is set. */
210 unsigned long debugctlmsr;
211/* Debug Store - if not 0 points to a DS Save Area configuration;
212 * goes into MSR_IA32_DS_AREA */
213 unsigned long ds_area_msr;
214};
215
216#define INIT_THREAD { \ 179#define INIT_THREAD { \
217 .sp0 = sizeof(init_stack) + (long)&init_stack, \ 180 .sp0 = sizeof(init_stack) + (long)&init_stack, \
218 .vm86_info = NULL, \ 181 .vm86_info = NULL, \