rombios: remove unnecessary function calls.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Jan 2009 12:41:44 +0000 (12:41 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 15 Jan 2009 12:41:44 +0000 (12:41 +0000)
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>
tools/firmware/rombios/32bitgateway.c

index 9592dfbca14ea6fc2692cdb86cc92dfb105c2ee2..569a8ccfc96250f18ce59ba59c310b2a0d49e885 100644 (file)
@@ -126,18 +126,18 @@ gdt_base:
 gdt_entry_pm_cs:
     ; 32 bit code segment for protected mode
     .word 0xffff, 0x0000
-    .byte 0x00, 0x9a, 0xcf, 0x00
+    .byte 0x00, 0x9b, 0xcf, 0x00
 
 gdt_entry_pm_16bit_cs:
     ; temp. 16 bit code segment used while in protected mode
     .word 0xffff, 0x0000
-    .byte SEGMENT_OFFSET >> 16, 0x9a, 0x0, 0x0
+    .byte SEGMENT_OFFSET >> 16, 0x9b, 0x0, 0x0
 
 gdt_entry_pm_32bit_ds:
     ; (32 bit) data segment (r/w) reaching all possible areas in 32bit memory
     ; 4kb granularity
     .word 0xffff, 0x0000
-    .byte 0x0, 0x92, 0xcf, 0x0
+    .byte 0x0, 0x93, 0xcf, 0x0
 gdt_entry_end:
 
 my_gdtdesc:
@@ -356,9 +356,6 @@ Upcall:
        call _store_returnaddress       ; store away
        pop ax
 
-       ; XXX GDT munging requires ROM to be writable!
-       call _enable_rom_write_access
-
        rol bx, #2
        mov si, #jmptable
        seg cs
@@ -385,8 +382,6 @@ Upcall:
        mov bp,sp
        push eax                        ; preserve work register
 
-       call _disable_rom_write_access
-
        call _get_returnaddress
        mov 2[bp], ax                   ; 16bit return address onto stack