WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Don't reload segment registers -- it's done later in gen

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Don't reload segment registers -- it's done later in generic code.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 22 Feb 2006 18:50:10 +0000
Delivery-date: Wed, 22 Feb 2006 18:50:40 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID ed274ca1fbb7b0b0a5c1b8733962e5831835928c
# Parent  f06f8c9a13d1f6ffcdf0d395eb6cf30f66fd51fe
Don't reload segment registers -- it's done later in generic code.

Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r f06f8c9a13d1 -r ed274ca1fbb7 
linux-2.6-xen-sparse/arch/i386/kernel/cpu/common-xen.c
--- a/linux-2.6-xen-sparse/arch/i386/kernel/cpu/common-xen.c    Wed Feb 22 
15:17:04 2006
+++ b/linux-2.6-xen-sparse/arch/i386/kernel/cpu/common-xen.c    Wed Feb 22 
15:50:28 2006
@@ -583,19 +583,6 @@
        }
        if (HYPERVISOR_set_gdt(frames, gdt_descr->size / 8))
                BUG();
-
-       /* Reload all the segment registers after changing gdt. */
-       asm volatile("movl %0,%%ss\n\t"
-                    "movl %1,%%ds\n\t"
-                    "movl %1,%%es\n\t"
-                    "pushl %2\n\t"             /* Reload CS by intersegment 
return. */
-                    "pushl $1f\n\t"
-                    "lret\n\t"
-                    "1:\n\t"
-                    : /* no outputs */
-                    : "r"(__KERNEL_DS),
-                      "r"(__USER_DS),
-                      "r"(__KERNEL_CS));
 }
 
 /*

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Don't reload segment registers -- it's done later in generic code., Xen patchbot -unstable <=