aboutsummaryrefslogtreecommitdiffstats
path: root/core/isolinux.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-31 21:29:12 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-31 21:29:12 -0700
commit63916a56b59d4f9a873c1a548d0bda5473f456b7 (patch)
tree0e17c0ae67871a9d83c20b3bbebeea306d06e653 /core/isolinux.asm
parent3249f64248ab55063bae2b7090b79db486957609 (diff)
downloadsyslinux-63916a56b59d4f9a873c1a548d0bda5473f456b7.tar.gz
isolinux: can't clobber edx when dx contains the drive number...
Use ebx to hold the upper half of the partition offset, not edx. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r--core/isolinux.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/isolinux.asm b/core/isolinux.asm
index 38d3d715..2627c2df 100644
--- a/core/isolinux.asm
+++ b/core/isolinux.asm
@@ -249,14 +249,14 @@ _start_hybrid:
pop di
pop es
xor eax,eax
- xor edx,edx
+ xor ebx,ebx
cmp sp,7C00h
jae .nooffset
pop eax
- pop edx
+ pop ebx
.nooffset:
mov [cs:bsHidden],eax
- mov [cs:bsHidden+4],edx
+ mov [cs:bsHidden+4],ebx
mov si,bios_cbios
jcxz _start_common