aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-10 15:01:19 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-10 15:01:19 -0700
commit59c99264362d6a084f6dfff0803e582c01a1ea2b (patch)
treee6b34446a07d7e1bf811f09566ce56a04def9b57 /core
parentcc63fb81f15e2671c7f576ffc47e7718bdb26a27 (diff)
downloadsyslinux-elf-59c99264362d6a084f6dfff0803e582c01a1ea2b.tar.gz
syslinux-elf-59c99264362d6a084f6dfff0803e582c01a1ea2b.tar.xz
syslinux-elf-59c99264362d6a084f6dfff0803e582c01a1ea2b.zip
Add CD-ROM mode query to the COM32 interface
Report the booting mode of ISOLINUX through the COM32 interface. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core')
-rw-r--r--core/comboot.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/comboot.inc b/core/comboot.inc
index ca11852f..810d8251 100644
--- a/core/comboot.inc
+++ b/core/comboot.inc
@@ -604,6 +604,10 @@ comapi_derinfo:
%elif IS_ISOLINUX
mov P_ES,cs
mov P_BX,spec_packet
+ mov ax,[BIOSType]
+ sub ax,bios_cdrom
+ shr ax,2
+ mov P_CH,al ; Mode (el torito/cbios/ebios)
%endif
%endif
clc