RE: printing and remembering platform name

Tim Rightnour <[email protected]>
Newsgroups gmane.os.netbsd.ports.ofppc
Message-ID <[email protected]>
On 16-Nov-2007 Frank Wille wrote:
> For Pegasos it would look like that:
>   mainbus0 (root): bplan,Pegasos2
> 
> I have already seen this in other ports, and I like it.

Actually.. this has been on my todo list for awhile now.

The correct way to do it is to pass it to oea_startup() as the sole argument. 
Take a look at prep/prep/machdep.c.

However, all that does is print the model name at boot.  We also should store
it in a model name global variable somewhere, so we can later use it in place of
the OFW searches we do everywhere.

---
Tim Rightnour <[email protected]>
NetBSD: Free multi-architecture OS http://www.netbsd.org/
Genecys: Open Source 3D MMORPG: http://www.genecys.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.