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] rombios: fix wrong stack segment in 32-bit gateway

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] rombios: fix wrong stack segment in 32-bit gateway
From: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Date: Mon, 26 Jan 2009 14:16:03 +0900
Delivery-date: Sun, 25 Jan 2009 21:16:41 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Stack segment doesn't be restored correctly in 32-bit gateway.

Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>

diff -r 2f993fde1dc6 tools/firmware/rombios/32bitgateway.c
--- a/tools/firmware/rombios/32bitgateway.c     Sun Jan 25 10:32:26 2009 +0000
+++ b/tools/firmware/rombios/32bitgateway.c     Mon Jan 26 14:03:25 2009 +0900
@@ -130,9 +130,9 @@
     ; Restore real-mode stack pointer
     xor eax, eax
     mov ax, ss_off[esp]
+    mov bx, ax    ; Real-mode ss in bx
     shl eax, 4
     sub esp, eax
-    mov bx, ax    ; Real-mode ss in bx
 
     ; Return to real mode
     jmpf upcall3, #PM_16BIT_CS
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] rombios: fix wrong stack segment in 32-bit gateway, Kouya Shimura <=