isolinux: can't clobber edx when dx contains the drive number...
authorH. Peter Anvin <hpa@zytor.com>
Mon, 1 Jun 2009 04:29:12 +0000 (21:29 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 1 Jun 2009 04:29:12 +0000 (21:29 -0700)
Use ebx to hold the upper half of the partition offset, not edx.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/isolinux.asm

index 38d3d71..2627c2d 100644 (file)
@@ -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