On Aug 26, 2005, at 11:24 AM, Pete Popov wrote:
or something like that.
Sure, we can do that.
If you do this, I suggest using another PowerPC-ism. They
have a ppc_md data structure that is filled with indirect function
pointers to machine dependent functions. We could create
a mips_md that does this same thing. The reason I like this
is it collects all machine dependent information in a single
place, so it's easy to see what functions/data are available
and what you may need to do. It's also clear when used
that anything in this structure is a machine/board dependent
function. In the proper places, you then do what is shown above:
Your earliest machine dependent set up can then fill this in
based upon board options, or you can statically set it up if
you need it even earlier and change it later.