diff options
author | Liu Aleaxander <Aleaxander@gmail.com> | 2009-07-13 15:56:51 +0800 |
---|---|---|
committer | Liu Aleaxander <Aleaxander@gmail.com> | 2009-07-13 15:56:51 +0800 |
commit | d33dbedfe1cddbf578b86d599cdba7c8356b91e8 (patch) | |
tree | 0a945ef1a1fd64f68486fea1bb35ae2878867fb1 /core/isolinux.asm | |
parent | c69d6f0ca9344bce0c090737ce08ce6fe64fa1d6 (diff) | |
download | syslinux-d33dbedfe1cddbf578b86d599cdba7c8356b91e8.tar.gz |
Core: fix the hybride mode detection code
Diffstat (limited to 'core/isolinux.asm')
-rw-r--r-- | core/isolinux.asm | 8 |
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] |