On 15-Dec-01 Hiten Pandya wrote:
> hi,
> I found this piece of code in boot0.s, is it possible
> if you could explain me a bit about it.
> 
> .set NHRDRV,0x475        # Number of hard drives
> 
> The hex value comes out to: 1141.
> 
> Does that mean, that this is the amound of maximum
> hard drives a user can have on FreeBSD?

No.  It's the offset in memory of the number of hard drives in the BIOS.  The
BIOS has a data segment at 0x40, and at 0x40:0x75 (whose physical address is
0x475) it has a byte which is a count of the number of hard drives installed.

-- 

John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to