diff options
-rw-r--r-- | vgasrc/vga.c | 12 | ||||
-rw-r--r-- | vgasrc/vgaentry.S | 4 |
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 /**************************************************************** |