diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-01-04 20:48:20 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-01-04 20:48:20 -0500 |
commit | 643062f9bc208911e3f27265c697dbde151d4f56 (patch) | |
tree | 5e85a225c69eb106ee98b76803ffe58d2572a726 /src/misc.c | |
parent | 085debd93f52d36381ea13ef27e7f72e87fe62f5 (diff) | |
download | seabios-643062f9bc208911e3f27265c697dbde151d4f56.tar.gz |
Add int1589 support.
Int1589 switches into protected mode for the caller.
Also, consistently use BUILD_BIOS_ADDR/SIZE in GDT macros.
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -153,7 +153,7 @@ u64 rombios32_gdt[] VAR16VISIBLE __aligned(8) = { // 32 bit flat data segment (SEG32_MODE32_DS) GDT_LIMIT(0xfffff) | GDT_DATA | GDT_B | GDT_G, // 16 bit code segment base=0xf0000 limit=0xffff (SEG32_MODE16_CS) - GDT_LIMIT(0x0ffff) | GDT_CODE | GDT_BASE(0xf0000), + GDT_LIMIT(BUILD_BIOS_SIZE-1) | GDT_CODE | GDT_BASE(BUILD_BIOS_ADDR), // 16 bit data segment base=0x0 limit=0xffff (SEG32_MODE16_DS) GDT_LIMIT(0x0ffff) | GDT_DATA, // 16 bit code segment base=0 limit=0xffffffff (SEG32_MODE16BIG_CS) |