From: Kouya Shimura Subject: [PATCH] rombios: fix wrong stack segment in 32-bit gateway Date: Mon, 26 Jan 2009 14:16:03 +0900 Message-ID: <7kskn64pgr.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="WVPgfzPSQ+" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --WVPgfzPSQ+ Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Stack segment doesn't be restored correctly in 32-bit gateway. Signed-off-by: Kouya Shimura --WVPgfzPSQ+ Content-Type: text/x-patch Content-Disposition: inline; filename="32bitgateway.patch" Content-Transfer-Encoding: 7bit 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 --WVPgfzPSQ+ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --WVPgfzPSQ+--