From: H. Peter Anvin Date: Sat, 30 Jun 2007 15:15:17 +0000 (-0400) Subject: Forgot to add our own drive to the drive count! X-Git-Tag: syslinux-3.52-pre3^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30358c4848a494b6ebc1b85d67818cc701804125;p=profile%2Fivi%2Fsyslinux.git Forgot to add our own drive to the drive count! --- diff --git a/memdisk/setup.c b/memdisk/setup.c index bad056c..553c446 100644 --- a/memdisk/setup.c +++ b/memdisk/setup.c @@ -766,6 +766,9 @@ void setup(syscall_t cs_syscall, void *cs_bounce) pptr->drivecnt = bios_drives; } + /* Add ourselves to the drive count */ + pptr->drivecnt++; + /* Discontiguous drive space. There is no really good solution for this. */ if ( pptr->drivecnt <= (geometry->driveno & 0x7f) ) pptr->drivecnt = (geometry->driveno & 0x7f) + 1;