[syslinux:master] mbr/isohdpfx.S: correct stack for heads/sectors; revert
syslinux-bot for Martin Str|mberg
ams at ludd.ltu.se
Tue Mar 28 09:21:23 PDT 2017
Commit-ID: 32c09027423f61c305e2423e52f5f69ecad8e2c0
Gitweb: http://www.syslinux.org/commit/32c09027423f61c305e2423e52f5f69ecad8e2c0
Author: Martin Str|mberg <ams at ludd.ltu.se>
AuthorDate: Sun, 26 Mar 2017 07:32:11 -0400
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Tue, 28 Mar 2017 10:37:51 -0400
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 at gmail.com>
---
mbr/isohdpfx.S | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mbr/isohdpfx.S b/mbr/isohdpfx.S
index 17e1efe..f9e9691 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 */
More information about the Syslinux-commits
mailing list