From: Kevin O'Connor Date: Fri, 1 Jan 2010 17:53:32 +0000 (-0500) Subject: Minor vga binary cleanups. X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=seabios.git;a=commitdiff_plain;h=c9d3c2d1c451bcfdf157b6447b6c1008f27a1e34 Minor vga binary cleanups. --- diff --git a/vgasrc/vga.c b/vgasrc/vga.c index 6d06cd6..888c711 100644 --- a/vgasrc/vga.c +++ b/vgasrc/vga.c @@ -833,15 +833,15 @@ handle_101130(struct bregs *regs) { switch (regs->bh) { case 0x00: { - u32 segoff = GET_IVT(0x1f).segoff; - regs->es = segoff >> 16; - regs->bp = segoff; + struct segoff_s so = GET_IVT(0x1f); + regs->es = so.seg; + regs->bp = so.offset; break; } case 0x01: { - u32 segoff = GET_IVT(0x43).segoff; - regs->es = segoff >> 16; - regs->bp = segoff; + struct segoff_s so = GET_IVT(0x43); + regs->es = so.seg; + regs->bp = so.offset; break; } case 0x02: diff --git a/vgasrc/vgaentry.S b/vgasrc/vgaentry.S index 7802bdb..b99cf6f 100644 --- a/vgasrc/vgaentry.S +++ b/vgasrc/vgaentry.S @@ -28,7 +28,9 @@ _rom_header_size: _rom_header_entry: jmp _optionrom_entry _rom_header_checksum: - .space 22 + .byte 0 +_rom_header_other: + .space 21 /****************************************************************