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

[Xen-devel] [PATCH] DS init in trampoline code


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Tue, 12 Jun 2007 19:05:21 +0800
  • Delivery-date: Tue, 12 Jun 2007 04:03:30 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Aces4ZGn+RhZVSJ9SU+iIf2m0iO8RA==
  • Thread-topic: [PATCH] DS init in trampoline code

Initialize ds before accessing data in trampoline area, or
else 0xA5 is written to wrong place.

Signed-off-by Kevin Tian <kevin.tian@xxxxxxxxx>

diff -r de47ca8be7fe xen/arch/x86/boot/trampoline.S
--- a/xen/arch/x86/boot/trampoline.S    Mon Jun 11 15:50:35 2007 +0100
+++ b/xen/arch/x86/boot/trampoline.S    Mon Jun 11 22:49:36 2007 -0400
@@ -6,6 +6,8 @@
 
         .globl trampoline_realmode_entry
 trampoline_realmode_entry:
+        mov     %cs, %ax
+        mov     %ax, %ds
         movb    $0xA5,bootsym(trampoline_cpu_started)
         cld
         cli

Thanks,
Kevin

Attachment: tramp_ds.patch
Description: tramp_ds.patch

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

 


Rackspace

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