aboutsummaryrefslogtreecommitdiffstats
path: root/core/isolinux.asm
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-07-13 15:56:51 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-07-13 15:56:51 +0800
commitd33dbedfe1cddbf578b86d599cdba7c8356b91e8 (patch)
tree0a945ef1a1fd64f68486fea1bb35ae2878867fb1 /core/isolinux.asm
parentc69d6f0ca9344bce0c090737ce08ce6fe64fa1d6 (diff)
downloadsyslinux-d33dbedfe1cddbf578b86d599cdba7c8356b91e8.tar.gz
Core: fix the hybride mode detection code
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r--core/isolinux.asm8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/isolinux.asm b/core/isolinux.asm
index 4b11b43c..f369e598 100644
--- a/core/isolinux.asm
+++ b/core/isolinux.asm
@@ -1168,7 +1168,13 @@ all_read:
extern iso_fs_ops
mov eax,iso_fs_ops
mov dl,[DriveNumber]
- mov dh,1 ; it's cdrom
+ cmp word [BIOSType],bios_cdrom
+ jne hybrid
+ mov dh,1 ; it's cdrom
+ jmp end
+hybrid:
+ mov dh,0 ; it's in hybrid mode
+end:
mov ecx,[bsHidden]
mov ebx,[bsHidden+4]
mov si,[bsHeads]