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-devel

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

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] DS init in trampoline code
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] DS init in trampoline code, Tian, Kevin <=