Skip to content

Commit

Permalink
mbr/isohdpfx.S: Clear CX on INT 13h AH 41h failure
Browse files Browse the repository at this point in the history
If anything goes wrong, clear CX in case it contains garbage.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
  • Loading branch information
Martin Str|mberg authored and geneC committed Mar 28, 2017
1 parent 32c0902 commit 8739e2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mbr/isohdpfx.S
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 8739e2f

Please sign in to comment.