[Top] [All Lists]

Re: patch / rfc

Subject: Re: patch / rfc
From: Dan Malek <>
Date: Fri, 26 Aug 2005 11:47:36 -0400
Cc: "Maciej W. Rozycki" <>, "''" <>
In-reply-to: <1125069898.14435.1215.camel@localhost.localdomain>
Original-recipient: rfc822;
References: <1125006681.14435.1065.camel@localhost.localdomain> <> <1125069898.14435.1215.camel@localhost.localdomain>

On Aug 26, 2005, at 11:24 AM, Pete Popov wrote:

void (*plat_setup_late)(void);
        if (plat_setup_late)

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:

        if (mips_md.plat_setup_late)

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.


        -- Dan

<Prev in Thread] Current Thread [Next in Thread>