aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-01-01 12:53:32 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-01-01 13:05:23 -0500
commitc9d3c2d1c451bcfdf157b6447b6c1008f27a1e34 (patch)
tree78bed87025dc568107ce754324f229ac14739c18 /vgasrc
parent9a8609f862b89efbb52106a94ad51f55bb67e05a (diff)
downloadseabios-c9d3c2d1c451bcfdf157b6447b6c1008f27a1e34.tar.gz
Minor vga binary cleanups.
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/vga.c12
-rw-r--r--vgasrc/vgaentry.S4
2 files changed, 9 insertions, 7 deletions
diff --git a/vgasrc/vga.c b/vgasrc/vga.c
index 6d06cd68..888c7111 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 7802bdb5..b99cf6f3 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
/****************************************************************