aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2005-08-26 21:11:07 +0000
committerhpa <hpa>2005-08-26 21:11:07 +0000
commit72be610d4fe0bb15ac8b93b15d1a1dd204bcd9ec (patch)
treea9dcd3d738d79b00304ddbb179a4b1dd33f6bd2b
parent85872ce60d95b4b72a07145f9e05a6960c5cf368 (diff)
downloadsyslinux-72be610d4fe0bb15ac8b93b15d1a1dd204bcd9ec.tar.gz
syslinux-72be610d4fe0bb15ac8b93b15d1a1dd204bcd9ec.tar.xz
syslinux-72be610d4fe0bb15ac8b93b15d1a1dd204bcd9ec.zip
Query a more sane drive number.syslinux-3.11-pre5
-rw-r--r--memdisk/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c
index ee429b4a..53ace201 100644
--- a/memdisk/setup.c
+++ b/memdisk/setup.c
@@ -680,7 +680,7 @@ uint32_t setup(syscall_t cs_syscall, void *cs_bounce)
memset(&regs, 0, sizeof regs);
regs.es = 0;
regs.eax.b[1] = 0x08;
- regs.edx.b[0] = geometry->driveno;
+ regs.edx.b[0] = geometry->driveno & 0x80;
syscall(0x13, &regs, &regs);
if ( regs.eflags.l & 1 ) {