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] [xen-3.1-testing] x86: GDTR must be reset after using re

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] x86: GDTR must be reset after using real-mode BIOS services. Some
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 29 Oct 2007 20:30:44 -0700
Delivery-date: Mon, 29 Oct 2007 20:31:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1193301996 -3600
# Node ID f983730bfc809f768506fbbb27b0c5a5ec3ea626
# Parent  bf8eacda088f61a6fd286456bd8ed6411bf648fb
x86: GDTR must be reset after using real-mode BIOS services. Some
BIOSes clobber GDTR. While we're here reset IDTR too, although it's
not really necessary.
Signed-off-by: John Byrne <john.l.byrne@xxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen-unstable changeset:   16215:0f86492f1a8c44dd723cae0ebe3af9f2a737dea5
xen-unstable date:        Thu Oct 25 09:43:42 2007 +0100
---
 xen/arch/x86/boot/trampoline.S |    4 ++++
 1 files changed, 4 insertions(+)

diff -r bf8eacda088f -r f983730bfc80 xen/arch/x86/boot/trampoline.S
--- a/xen/arch/x86/boot/trampoline.S    Tue Oct 23 14:50:57 2007 +0100
+++ b/xen/arch/x86/boot/trampoline.S    Thu Oct 25 09:46:36 2007 +0100
@@ -160,6 +160,10 @@ 1:      mov     $(BOOT_TRAMPOLINE>>4),%a
         /* Disable irqs before returning to protected mode. */
         cli
 
+        /* Reset GDT and IDT. Some BIOSes clobber GDTR. */
+        lidt    bootsym(idt_48)
+        lgdt    bootsym(gdt_48)
+
         /* Enter protected mode, and flush insn queue. */
         xor     %ax,%ax
         inc     %ax

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] x86: GDTR must be reset after using real-mode BIOS services. Some, Xen patchbot-3.1-testing <=