Subject: Re: PPC assembly
To: Andy <andy@softbook.com>
From: Bill Studenmund <wrstuden@zembu.com>
List: port-macppc
Date: 05/10/2000 09:22:35
On Wed, 10 May 2000, Andy wrote:

> Thanks Bill!
> >Check the MI loadfile() routine, as it actually loades the file. It lives
> >in sys/lib/libsa/loadfile.[hc] . But I expect the -Ttext declaration in
> >the kernel build sets it.
> 
> What's MI ?

Machine independent.

> I couldn't find sys/lib/libsa/loadfile.c in the source tree
> Are you referring to loadfile() routine in macppc/stand/ofwboot/boot.c ?

Not as of version 1.2 of ofwboot. :-) See
http://cvsweb.netbsd.org/bsdweb.cgi/syssrc/sys/lib/libsa/loadfile.c

> That's not very encouraging - but still, can you name a few for Apple
> hardware?

Not really. Apple put out some tech notes which are an overview, but
that's about it. There are docs on the OF spec, but Apple didn't do the
best job at following it..

> >Welcome to the joys of low-level i/o.
> I've always wanted to get into the low level stuff ( I'm currently far
> removed from it at my day job )
> It's not the hairiness of the code that gets me sometimes, it's the lack of
> documentation. Only thanks to the help from people like yourself and others
> on this list that took time to answer my questions, the fog  is beginning
> to clear a bit..

Welcome to the club. :-)

Take care,

Bill