Subject: Re: Adding cd9660 support to the i386/amd64 BIOS bootloader
To: Bang Jun-Young <junyoung@netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: tech-install
Date: 06/21/2005 22:02:42
+ /*
+ * There seems to be no standard way of numbering BIOS
+ * CD-ROM drives. The following method is a little tricky
+ * but works nicely.
+ */
+ if (biosdev >= 0x80 + get_harddrives()) {
+ *devname = "cd";
+ *unit = 0; /* override default */
+ } else
Shouldn't that be something like
+ int nhds = get_harddrives();
+ if (biosdev >= 0x80 + nhds) {
+ *devname = "cd";
+ *unit = biosdev - 0x80 - nhds;
+ } else
?
I do have machines that have two "CD drives" (and can boot from either)
Martin