aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Str|mberg <ams@ludd.ltu.se>2017-03-26 07:54:29 -0400
committerGene Cumm <gene.cumm@gmail.com>2017-04-15 13:24:39 -0400
commit2d6ffa1412081c6b33ec2ef779d7e52c0bafbe15 (patch)
treeec78b09b6f84b6ab8a0dfa4f86abadd81f49e22e
parent45af3d24578783c53781050ef2a233dc84ff5ffd (diff)
downloadsyslinux-4.xx.tar.gz
syslinux-4.xx.tar.xz
syslinux-4.xx.zip
mbr/isohdpfx.S: Clear CX on INT 13h AH 41h failuresyslinux-4.xx
If anything goes wrong, clear CX in case it contains garbage. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r--mbr/isohdpfx.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbr/isohdpfx.S b/mbr/isohdpfx.S
index f9e96919..4b107e4b 100644
--- a/mbr/isohdpfx.S
+++ b/mbr/isohdpfx.S
@@ -167,8 +167,10 @@ next:
read_sector_cbios: movb $0x42, %ah ; jmp read_common */
movl $0xeb42b4+((read_common-read_sector_cbios-4) << 24), \
(read_sector_cbios)
- jmp 1f
+ jmp 2f
1:
+ xor %cx, %cx /* Clear EBIOS flag. */
+2:
popw %dx
pushw %cx /* EBIOS flag */