[syslinux:master] core/diskstart.inc: Use xint13 when it saves space or protects
syslinux-bot for Gene Cumm
gene.cumm at gmail.com
Wed Dec 22 21:21:29 PST 2010
Commit-ID: 649663146b3295cc9e202afe054922c539b42614
Gitweb: http://syslinux.zytor.com/commit/649663146b3295cc9e202afe054922c539b42614
Author: Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Mon, 20 Dec 2010 20:39:11 -0500
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Mon, 20 Dec 2010 20:39:11 -0500
core/diskstart.inc: Use xint13 when it saves space or protects
Additional note on where it will cost to possibly not protect anything
---
core/diskstart.inc | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/core/diskstart.inc b/core/diskstart.inc
index ac34cad..36f901b 100644
--- a/core/diskstart.inc
+++ b/core/diskstart.inc
@@ -168,6 +168,7 @@ floppy:
push ax
int 13h ; Some BIOSes need this
+ ; Using xint13 costs +1B
jmp short not_harddisk
;
; The drive number and possibly partition information was passed to us
@@ -220,7 +221,7 @@ harddisk:
;
; DL == drive # still
mov ah,08h
- int 13h
+ call xint13
jc no_driveparm
and ah,ah
jnz no_driveparm
@@ -242,8 +243,7 @@ not_harddisk:
eddcheck:
mov bx,55AAh
mov ah,41h ; EDD existence query
- mov dl,[DriveNumber]
- int 13h
+ call xint13
jc .noedd
cmp bx,0AA55h
jne .noedd
@@ -685,8 +685,7 @@ getlinsec_ebios:
pushad ; Try resetting the device
xor ax,ax
- mov dl,[DriveNumber]
- int 13h
+ call xint13
popad
loop .retry ; CX-- and jump if not zero
More information about the Syslinux-commits
mailing list