From: Gene Cumm Date: Tue, 21 Dec 2010 01:24:29 +0000 (-0500) Subject: core/diskstart.inc: Wrap INT13h in xint13 to preserve ES X-Git-Tag: syslinux-4.04-pre4~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8cc5332f879f42bd997f0ff0ff4a36cfc9b7a5d;p=platform%2Fupstream%2Fsyslinux.git core/diskstart.inc: Wrap INT13h in xint13 to preserve ES Sometimes INT13h AH08h kills ES to return info about a "floppy" (since an unpartitioned HDD might look like a floppy). Also, change to tabs on previous line. --- diff --git a/core/diskstart.inc b/core/diskstart.inc index 3fc20e2..ac34cad 100644 --- a/core/diskstart.inc +++ b/core/diskstart.inc @@ -420,8 +420,10 @@ writestr_early: ; INT 13h wrapper function ; xint13: - mov dl,[DriveNumber] + mov dl,[DriveNumber] + push es ; ES destroyed by INT 13h AH 08h int 13h + pop es ret ;