]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/x86/xen/smp.c
Merge tag 'stable/for-linus-3.13-rc0-tag' of git://git.kernel.org/pub/scm/linux/kerne...
[karo-tx-linux.git] / arch / x86 / xen / smp.c
index 48b57182dbb6359f630ea863173e12fc3b6376e9..c36b325abd83c6e48ac25fe1af66541f643c2f9b 100644 (file)
@@ -278,6 +278,15 @@ static void __init xen_smp_prepare_boot_cpu(void)
                   old memory can be recycled */
                make_lowmem_page_readwrite(xen_initial_gdt);
 
+#ifdef CONFIG_X86_32
+               /*
+                * Xen starts us with XEN_FLAT_RING1_DS, but linux code
+                * expects __USER_DS
+                */
+               loadsegment(ds, __USER_DS);
+               loadsegment(es, __USER_DS);
+#endif
+
                xen_filter_cpu_maps();
                xen_setup_vcpu_info_placement();
        }