[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: Initialise %ds when booting APs, otherwise data accesses go to



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1181653597 -3600
# Node ID c56ebab69b84f85626fb9945a43ff5ac1c778626
# Parent  699f0c4296204557dee30c399ed304e677b8f6f4
x86: Initialise %ds when booting APs, otherwise data accesses go to
the wrong place.
Signed-off-by: Kevin Tian <kevin.tian@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/arch/x86/boot/trampoline.S |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -r 699f0c429620 -r c56ebab69b84 xen/arch/x86/boot/trampoline.S
--- a/xen/arch/x86/boot/trampoline.S    Tue Jun 12 14:03:09 2007 +0100
+++ b/xen/arch/x86/boot/trampoline.S    Tue Jun 12 14:06:37 2007 +0100
@@ -6,11 +6,13 @@
 
         .globl trampoline_realmode_entry
 trampoline_realmode_entry:
+        mov     %cs,%ax
+        mov     %ax,%ds
         movb    $0xA5,bootsym(trampoline_cpu_started)
         cld
         cli
-        lidt    %cs:bootsym(idt_48)
-        lgdt    %cs:bootsym(gdt_48)
+        lidt    bootsym(idt_48)
+        lgdt    bootsym(gdt_48)
         xor     %ax, %ax
         inc     %ax
         lmsw    %ax                       # CR0.PE = 1 (enter protected mode)

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.