From: Benjamin Herrenschmidt <bh40@calva.net>
To: Bill Davidsen <davidsen@prodigy.com>, linuxppc-dev@lists.linuxppc.org
Subject: Re: [ppc-dev] Re: Restructuring Efforts
Date: Wed, 17 Feb 1999 18:27:16 +0100 [thread overview]
Message-ID: <19990217182716.027588@mail.mipsys.com> (raw)
In-Reply-To: <199902171250.HAA00182@darkstar.prodigy.com>
On Wed, Feb 17, 1999, Bill Davidsen <davidsen@prodigy.com> wrote:
>Well, you can preserve readability if you are willing to put the
>machine types in an enum and make use of "pointer to function
>returning" arrays. So instead of doing something like init_mem() you
>would use (*init_mem[_machine])() instead.
What we are trying to do here is a HAL ;-)
I like the function pointers idea but I don't like indexing by machines
each time the table is accessed. I beleive we should define a structure
of function pointers for each subsystem (setup, mm, irq, ...) at have
some boot logic fill the kernel static tables with pointers from the
subsystem exported tables. The decision based on the architecure must be
done only once.
Eventually, those tables could be "optimised" so that they are all in the
same page, each table beeing aligned on a cache line boundary.
--
E-Mail: <mailto:bh40@calva.net>
BenH. Web : <http://calvaweb.calvacom.fr/bh40/>
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]
next prev parent reply other threads:[~1999-02-17 17:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-16 16:33 Restructuring Efforts Christian Zankel
1999-02-16 20:11 ` Cort Dougan
1999-02-17 2:35 ` Troy Benjegerdes
1999-02-17 6:45 ` Cort Dougan
1999-02-17 10:53 ` Gabriel Paubert
1999-02-17 16:40 ` Troy Benjegerdes
1999-02-17 16:32 ` Benjamin Herrenschmidt
1999-02-17 12:50 ` [ppc-dev] " Bill Davidsen
1999-02-17 17:27 ` Benjamin Herrenschmidt [this message]
1999-02-17 23:44 ` David A. Gatwood
1999-02-18 11:25 ` Benjamin Herrenschmidt
1999-02-17 12:19 ` Gabriel Paubert
1999-02-18 8:44 ` Jesper Skov
1999-02-18 14:00 ` Gabriel Paubert
1999-02-18 14:26 ` Jesper Skov
1999-02-18 17:03 ` Cort Dougan
1999-02-20 4:39 ` Troy Benjegerdes
1999-02-22 20:03 ` Gabriel Paubert
1999-02-17 12:26 ` [ppc-dev] " Bill Davidsen
1999-02-17 12:12 ` Gabriel Paubert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19990217182716.027588@mail.mipsys.com \
--to=bh40@calva.net \
--cc=davidsen@prodigy.com \
--cc=linuxppc-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).