From owner-freebsd-hackers Sat Dec 15 12: 5:36 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail11.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id AF7E537B419 for ; Sat, 15 Dec 2001 12:05:34 -0800 (PST) Received: (qmail 4169 invoked from network); 15 Dec 2001 19:58:54 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 15 Dec 2001 19:58:54 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20011215092344.54636.qmail@web21110.mail.yahoo.com> Date: Sat, 15 Dec 2001 11:58:34 -0800 (PST) From: John Baldwin To: Hiten Pandya Subject: RE: boot0 Cc: hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 <>< 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