diff options
author | Martin Str|mberg <ams@ludd.ltu.se> | 2017-03-26 07:32:11 -0400 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2017-04-15 13:24:38 -0400 |
commit | 45af3d24578783c53781050ef2a233dc84ff5ffd (patch) | |
tree | 4539f0cf121f5b63c5206e2132d49fe456a03f6c | |
parent | d12243bb5f014e82f07a5e2ab7a559bc5adad824 (diff) | |
download | syslinux-45af3d24578783c53781050ef2a233dc84ff5ffd.tar.gz syslinux-45af3d24578783c53781050ef2a233dc84ff5ffd.tar.xz syslinux-45af3d24578783c53781050ef2a233dc84ff5ffd.zip |
mbr/isohdpfx.S: correct stack for heads/sectors; revert
Heads and sectors were pushed in reverse order per isolinux.asm
bb519a95 reversed the order of heads/sectors on the stack
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r-- | mbr/isohdpfx.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbr/isohdpfx.S b/mbr/isohdpfx.S index 17e1efe1..f9e96919 100644 --- a/mbr/isohdpfx.S +++ b/mbr/isohdpfx.S @@ -175,12 +175,12 @@ next: /* Get (C)HS geometry */ movb $0x08, %ah int $0x13 - andw $0x3f, %cx /* Sector count */ popw %bx /* EBIOS flag */ - pushw %cx /* -16: Save sectors on the stack */ movzbw %dh, %ax /* dh = max head */ incw %ax /* From 0-based max to count */ - pushw %ax /* -18: Save heads on the stack */ + pushw %ax /* -16: Save heads on the stack */ + andw $0x3f, %cx /* Sector count */ + pushw %cx /* -18: Save sectors on the stack */ mulw %cx /* Heads*sectors -> sectors per cylinder */ pushw %bx /* -20: EBIOS flag */ |