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

[Xen-devel] [PATCH] rombios: fix wrong stack segment in 32-bit gateway



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

 


Rackspace

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