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-03-26 07:54:41 -0400
commit18a50129915ecbd033c39bc0a64ab42aed147420 (patch)
tree633793cb2305e9a3736fbbda7b7dd6f37ffec9cc
parent0b385031d58d504c3d6cfddf025e29927720ab4c (diff)
downloadsyslinux-isohdpfx.tar.gz
syslinux-isohdpfx.tar.xz
syslinux-isohdpfx.zip
mbr/isohdpfx.S: Clear CX on INT 13h AH 41h failureisohdpfx
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 */