ia64/xen-unstable

changeset 8963:ed274ca1fbb7

Don't reload segment registers -- it's done later in generic code.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Wed Feb 22 15:50:28 2006 +0000 (2006-02-22)
parents f06f8c9a13d1
children 8946b6dcd49e
files linux-2.6-xen-sparse/arch/i386/kernel/cpu/common-xen.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/i386/kernel/cpu/common-xen.c	Wed Feb 22 15:17:04 2006 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/i386/kernel/cpu/common-xen.c	Wed Feb 22 15:50:28 2006 +0000
     1.3 @@ -583,19 +583,6 @@ void __cpuinit cpu_gdt_init(struct Xgt_d
     1.4  	}
     1.5  	if (HYPERVISOR_set_gdt(frames, gdt_descr->size / 8))
     1.6  		BUG();
     1.7 -
     1.8 -	/* Reload all the segment registers after changing gdt. */
     1.9 -	asm volatile("movl %0,%%ss\n\t"
    1.10 -		     "movl %1,%%ds\n\t"
    1.11 -		     "movl %1,%%es\n\t"
    1.12 -		     "pushl %2\n\t"		/* Reload CS by intersegment return. */
    1.13 -		     "pushl $1f\n\t"
    1.14 -		     "lret\n\t"
    1.15 -		     "1:\n\t"
    1.16 -		     : /* no outputs */
    1.17 -		     : "r"(__KERNEL_DS),
    1.18 -		       "r"(__USER_DS),
    1.19 -		       "r"(__KERNEL_CS));
    1.20  }
    1.21  
    1.22  /*