summaryrefslogtreecommitdiff
path: root/comboot.inc
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 /comboot.inc
parentd48bb2b249d996587cfe6e39e810a9805d013abe (diff)
downloadsyslinux-3.3x.tar.gz
Comboot function READ DISK corrupts its arguments; fix.syslinux-3.3x
Diffstat (limited to 'comboot.inc')
-rw-r--r--comboot.inc2
1 files changed, 1 insertions, 1 deletions
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