Subject: Re: root device
To: Jaromir Dolecek <jdolecek@netbsd.org>
From: Perry E. Metzger <perry@piermont.com>
List: tech-kern
Date: 02/08/2003 13:18:30
Jaromir Dolecek <jdolecek@netbsd.org> writes:
> Perry E. Metzger wrote:
> > There has to be a better/more certain way. (If there isn't then we
> > should create one.)
> 
> According to quick grep through sys/arch/*/*/autoconf.c for
> config_rootfound(), most archs use 'mainbus'. acorn26 uses
> four other 'roots' - cpu, iobus, arcvideo, podulebus.
> evbppc/walnut uses another root - 'plb'. sbmips uses 'zbbus'
> instead of 'mainbus'.

It is the fact that everyone doesn't use "mainbus" that leads me to
suggest that a routine to get the root without knowing the name might
be of use for MI code.

Perry