ia64/xen-unstable

changeset 19087:f2ad1a7ca582

rombios: fix wrong stack segment return in 32-bit gateway

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jan 26 11:16:52 2009 +0000 (2009-01-26)
parents 2f993fde1dc6
children c9dc7dcacc1d
files tools/firmware/rombios/32bitgateway.c
line diff
     1.1 --- a/tools/firmware/rombios/32bitgateway.c	Sun Jan 25 10:32:26 2009 +0000
     1.2 +++ b/tools/firmware/rombios/32bitgateway.c	Mon Jan 26 11:16:52 2009 +0000
     1.3 @@ -130,9 +130,9 @@ upcall2:
     1.4      ; Restore real-mode stack pointer
     1.5      xor eax, eax
     1.6      mov ax, ss_off[esp]
     1.7 +    mov bx, ax    ; Real-mode ss in bx
     1.8      shl eax, 4
     1.9      sub esp, eax
    1.10 -    mov bx, ax    ; Real-mode ss in bx
    1.11  
    1.12      ; Return to real mode
    1.13      jmpf upcall3, #PM_16BIT_CS