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

[Xen-changelog] [xen-unstable] rombios: fix wrong stack segment return in 32-bit gateway



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1232968612 0
# Node ID f2ad1a7ca58231f098296b9c038ec90ee55b7b7a
# Parent  2f993fde1dc6575c62db8677a5598c6cdbb5a855
rombios: fix wrong stack segment return in 32-bit gateway

Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
---
 tools/firmware/rombios/32bitgateway.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 2f993fde1dc6 -r f2ad1a7ca582 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 11:16:52 2009 +0000
@@ -130,9 +130,9 @@ upcall2:
     ; 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-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®.