Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2001 11:58:34 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Hiten Pandya <hitmaster2k@yahoo.com>
Cc:        hackers@freebsd.org
Subject:   RE: boot0
Message-ID:  <XFMail.011215115834.jhb@FreeBSD.org>
In-Reply-To: <20011215092344.54636.qmail@web21110.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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