Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 1995 00:48:35 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, julian@ref.tfs.com
Cc:        hackers@FreeBSD.org
Subject:   Re: Returned mail: Re: Booting from second hard drive (SCSI) problems (Again!!)
Message-ID:  <199504211448.AAA23965@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> >#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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504211448.AAA23965>