From 63916a56b59d4f9a873c1a548d0bda5473f456b7 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 31 May 2009 21:29:12 -0700 Subject: [PATCH] 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 --- core/isolinux.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/isolinux.asm b/core/isolinux.asm index 38d3d71..2627c2d 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 -- 2.7.4