ia64/xen-unstable

changeset 19050:d84504432e61

rombios: remove unnecessary function calls.

The rombios always becomes read-only after using 32bit gateway.
That is not handy for using the gateway.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 15 12:41:44 2009 +0000 (2009-01-15)
parents 04f913ab2049
children 40d9d9ff435a
files tools/firmware/rombios/32bitgateway.c
line diff
     1.1 --- a/tools/firmware/rombios/32bitgateway.c	Thu Jan 15 12:40:48 2009 +0000
     1.2 +++ b/tools/firmware/rombios/32bitgateway.c	Thu Jan 15 12:41:44 2009 +0000
     1.3 @@ -126,18 +126,18 @@ gdt_base:
     1.4  gdt_entry_pm_cs:
     1.5      ; 32 bit code segment for protected mode
     1.6      .word 0xffff, 0x0000
     1.7 -    .byte 0x00, 0x9a, 0xcf, 0x00
     1.8 +    .byte 0x00, 0x9b, 0xcf, 0x00
     1.9  
    1.10  gdt_entry_pm_16bit_cs:
    1.11      ; temp. 16 bit code segment used while in protected mode
    1.12      .word 0xffff, 0x0000
    1.13 -    .byte SEGMENT_OFFSET >> 16, 0x9a, 0x0, 0x0
    1.14 +    .byte SEGMENT_OFFSET >> 16, 0x9b, 0x0, 0x0
    1.15  
    1.16  gdt_entry_pm_32bit_ds:
    1.17      ; (32 bit) data segment (r/w) reaching all possible areas in 32bit memory
    1.18      ; 4kb granularity
    1.19      .word 0xffff, 0x0000
    1.20 -    .byte 0x0, 0x92, 0xcf, 0x0
    1.21 +    .byte 0x0, 0x93, 0xcf, 0x0
    1.22  gdt_entry_end:
    1.23  
    1.24  my_gdtdesc:
    1.25 @@ -356,9 +356,6 @@ Upcall:
    1.26  	call _store_returnaddress	; store away
    1.27  	pop ax
    1.28  
    1.29 -	; XXX GDT munging requires ROM to be writable!
    1.30 -	call _enable_rom_write_access
    1.31 -
    1.32  	rol bx, #2
    1.33  	mov si, #jmptable
    1.34  	seg cs
    1.35 @@ -385,8 +382,6 @@ Upcall:
    1.36  	mov bp,sp
    1.37  	push eax			; preserve work register
    1.38  
    1.39 -	call _disable_rom_write_access
    1.40 -
    1.41  	call _get_returnaddress
    1.42  	mov 2[bp], ax			; 16bit return address onto stack
    1.43