[PATCH] i386: Use %gs as the PDA base-segment in the kernel
[deliverable/linux.git] / include / asm-i386 / processor.h
index a9f2041c7c8735911c2be8ef94989c921c141c44..f73cf836e6491f951dca57451954c23852005ac7 100644 (file)
@@ -473,6 +473,7 @@ struct thread_struct {
        .vm86_info = NULL,                                              \
        .sysenter_cs = __KERNEL_CS,                                     \
        .io_bitmap_ptr = NULL,                                          \
+       .gs = __KERNEL_PDA,                                             \
 }
 
 /*
@@ -500,7 +501,8 @@ static inline void load_esp0(struct tss_struct *tss, struct thread_struct *threa
 }
 
 #define start_thread(regs, new_eip, new_esp) do {              \
-       __asm__("movl %0,%%fs ; movl %0,%%gs": :"r" (0));       \
+       __asm__("movl %0,%%fs": :"r" (0));                      \
+       regs->xgs = 0;                                          \
        set_fs(USER_DS);                                        \
        regs->xds = __USER_DS;                                  \
        regs->xes = __USER_DS;                                  \
This page took 0.023584 seconds and 5 git commands to generate.