From owner-freebsd-hackers Fri Apr 21 13:26:02 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id NAA17986 for hackers-outgoing; Fri, 21 Apr 1995 13:26:02 -0700 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id NAA17978 for ; Fri, 21 Apr 1995 13:25:59 -0700 Received: (from julian@localhost) by ref.tfs.com (8.6.8/8.6.6) id NAA20011; Fri, 21 Apr 1995 13:19:44 -0700 From: Julian Elischer Message-Id: <199504212019.NAA20011@ref.tfs.com> Subject: Re: Returned mail: Re: Booting from second hard drive (SCSI) problems (Again!!) To: bde@zeta.org.au (Bruce Evans) Date: Fri, 21 Apr 1995 13:19:44 -0700 (PDT) Cc: bde@zeta.org.au, hackers@FreeBSD.org In-Reply-To: <199504211448.AAA23965@godzilla.zeta.org.au> from "Bruce Evans" at Apr 22, 95 00:48:35 am Content-Type: text Content-Length: 903 Sender: hackers-owner@FreeBSD.org Precedence: bulk you are right I appologise and will fix the code.. julian > > >> >#ifdef BOOT_HD > >> > maj = (drive&0x80 ? 0 : 1); /* a good first bet */ > >> >#else > >> > maj = (drive&0x80 ? 0 : 2); /* a good first bet */ > >> >#endif > >> > >> Shouldn't this be > >> > >> >#ifdef BOOT_HD > >> > maj = (drive&0x80 ? 1 : 2); /* a bad first bet */ > >> >#else > >> > maj = (drive&0x80 ? 0 : 2); /* another bad first bet */ > >> >#endif > >> > >> ? > >NO, I had it correct.. > >major 0 if off a floppy and major 1 if not.. > > The above gives major 0 if off a hard disk and major 1 if off a floppy > (the 0x80 bit is for hard disks). > > >major 1 is a 'pseudo' mojor which is later changed to 2 or 4 > >depending on whether it's scsi > > Actually, major 1 is later changed to 0 or 4 (2 is the floppy major). > > Bruce >