ia64/xen-unstable

changeset 14905:f71d167a6c6d

hvm rombios: Fix int15, func 0x86 (udelay).
Was reading argument from wrong stack location with recent versions of
bcc. Doing the access from [bp] rather than [sp] is safer as the
former does not change all the time.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Apr 24 12:13:58 2007 +0100 (2007-04-24)
parents a7bd11fd5b1b
children 3b01a4bd5763
files tools/firmware/rombios/rombios.c
line diff
     1.1 --- a/tools/firmware/rombios/rombios.c	Tue Apr 24 12:12:48 2007 +0100
     1.2 +++ b/tools/firmware/rombios/rombios.c	Tue Apr 24 12:13:58 2007 +0100
     1.3 @@ -4157,15 +4157,12 @@ BX_DEBUG_INT15("int15 AX=%04x\n",regs.u.
     1.4        DX = regs.u.r16.dx;
     1.5  
     1.6  ASM_START
     1.7 -      sti
     1.8 -
     1.9        ;; Get the count in eax
    1.10 -      mov  bx, sp
    1.11        SEG SS
    1.12 -        mov  ax, _int15_function.CX [bx]
    1.13 +        mov  ax, .int15_function32.CX [bp]
    1.14        shl  eax, #16
    1.15        SEG SS
    1.16 -        mov  ax, _int15_function.DX [bx]
    1.17 +        mov  ax, .int15_function32.DX [bp]
    1.18  
    1.19        ;; convert to numbers of 15usec ticks
    1.20        mov ebx, #15