Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2001 04:14:42 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Hiten Pandya <hitmaster2k@yahoo.com>
Cc:        hackers@freebsd.org
Subject:   Re: boot0
Message-ID:  <3C1B3EB2.E6D1F0C0@mindspring.com>
References:  <20011215092344.54636.qmail@web21110.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hiten Pandya wrote:
> 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.

The BIOS bootstrap loaded passes the boot drive in the %DL;
this gets pushed, and later poped for the byt compare; the
compare is based on a storage location of a relative offset.

Frankly, you don't need to understand this code if you are
trying to get the boot loader to understand JFS; instead
you want to add JFS support into boot1/2 via libstand in
/usr/src/lib/libstand.  See /usr/src/lib/libstand/ufs.c,
and look at how the library is able to select the routines
in ufs.c vs. cd9660.c.

If you are serious about this, handle read-only non-root
JFS mounts of Linux created disks, first, and then work up
to read/write, root mount, and then booting (in that order).

-- Terry

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?3C1B3EB2.E6D1F0C0>