aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-02-19 15:54:58 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-02-19 15:54:58 -0800
commitc7c51cdcd0a094c2588f8a816542bc57bb4efb34 (patch)
tree5a34dc586c64a89e5a241e21e9e51a0b63f32133
parentd48bb2b249d996587cfe6e39e810a9805d013abe (diff)
downloadsyslinux-c7c51cdcd0a094c2588f8a816542bc57bb4efb34.tar.gz
syslinux-c7c51cdcd0a094c2588f8a816542bc57bb4efb34.tar.xz
syslinux-c7c51cdcd0a094c2588f8a816542bc57bb4efb34.zip
Comboot function READ DISK corrupts its arguments; fix.syslinux-3.3x
-rw-r--r--comboot.doc2
-rw-r--r--comboot.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/comboot.doc b/comboot.doc
index 8aaa0e78..0d70b48a 100644
--- a/comboot.doc
+++ b/comboot.doc
@@ -723,7 +723,7 @@ AX=0018h [3.30] Query custom font
been loaded, AL contains zero.
-AX=0019h [3.35] Read disk [SYSLINUX, ISOLINUX, EXTLINUX]
+AX=0019h [3.xx] Read disk [SYSLINUX, ISOLINUX, EXTLINUX]
Input: AX 0019h
EDX Sector number
ESI Reserved - MUST BE ZERO
diff --git a/comboot.inc b/comboot.inc
index 0f544c2e..5df900f8 100644
--- a/comboot.inc
+++ b/comboot.inc
@@ -780,9 +780,9 @@ comapi_readdisk:
or esi,P_EDI ; are reserved for future expansion
jnz .err
mov eax,P_EDX
- mov bp,P_CX
mov es,P_ES
mov bx,P_BX
+ mov bp,P_CX ; WE CANNOT use P_* after touching bp!
call getlinsec
clc
ret