ia64/xen-unstable

changeset 19479:909bb1245930

hvmloader: ROMBIOS must POST in big real mode, since it supports PMM,
and hence Option ROMs can expect noi segment limit checks.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 31 14:04:50 2009 +0100 (2009-03-31)
parents 011f4fbf46b2
children d669f5d1f876
files tools/firmware/hvmloader/hvmloader.c tools/firmware/rombios/32bitgateway.c
line diff
     1.1 --- a/tools/firmware/hvmloader/hvmloader.c	Tue Mar 31 13:57:11 2009 +0100
     1.2 +++ b/tools/firmware/hvmloader/hvmloader.c	Tue Mar 31 14:04:50 2009 +0100
     1.3 @@ -88,8 +88,8 @@ asm (
     1.4      "    .align 8                    \n"
     1.5      "gdt:                            \n"
     1.6      "    .quad 0x0000000000000000    \n"
     1.7 -    "    .quad 0x00009a000000ffff    \n" /* Ring 0 code, base 0 limit 0xffff */
     1.8 -    "    .quad 0x000092000000ffff    \n" /* Ring 0 data, base 0 limit 0xffff */
     1.9 +    "    .quad 0x008f9a000000ffff    \n" /* Ring 0 16b code, base 0 limit 4G */
    1.10 +    "    .quad 0x008f92000000ffff    \n" /* Ring 0 16b data, base 0 limit 4G */
    1.11      "gdt_end:                        \n"
    1.12      "                                \n"
    1.13      "    .bss                        \n"
     2.1 --- a/tools/firmware/rombios/32bitgateway.c	Tue Mar 31 13:57:11 2009 +0100
     2.2 +++ b/tools/firmware/rombios/32bitgateway.c	Tue Mar 31 14:04:50 2009 +0100
     2.3 @@ -56,13 +56,13 @@ gdt_entry_pm_32bit_cs:
     2.4      .byte 0x00, 0x9b, 0xcf, 0x00
     2.5  gdt_entry_pm_16bit_cs:
     2.6      .word 0xffff, 0x0000
     2.7 -    .byte REAL_MODE_CODE_OFFSET >> 16, 0x9b, 0x0, 0x0
     2.8 +    .byte REAL_MODE_CODE_OFFSET >> 16, 0x9b, 0x8f, 0x0
     2.9  gdt_entry_pm_32bit_ds:
    2.10      .word 0xffff, 0x0000
    2.11      .byte 0x0, 0x93, 0xcf, 0x0
    2.12  gdt_entry_pm_16bit_ds:
    2.13      .word 0xffff, 0x0000
    2.14 -    .byte 0x0, 0x93, 0x0, 0x0
    2.15 +    .byte 0x0, 0x93, 0x8f, 0x0
    2.16  gdt_entry_end:
    2.17  
    2.18  protmode_gdtdesc: