diff options
author | Martin Str|mberg <ams@ludd.ltu.se> | 2017-03-26 07:54:29 -0400 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2017-03-28 10:38:26 -0400 |
commit | 8739e2ff9ba3f92652c8df846924fd00e1ce2753 (patch) | |
tree | 633793cb2305e9a3736fbbda7b7dd6f37ffec9cc | |
parent | 32c09027423f61c305e2423e52f5f69ecad8e2c0 (diff) | |
download | syslinux-8739e2ff9ba3f92652c8df846924fd00e1ce2753.tar.gz syslinux-8739e2ff9ba3f92652c8df846924fd00e1ce2753.tar.xz syslinux-8739e2ff9ba3f92652c8df846924fd00e1ce2753.zip |
mbr/isohdpfx.S: Clear CX on INT 13h AH 41h failure
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.S | 4 |
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 */ |