From: Dan Malek <dan@netx4.com>
To: Christian Zankel <chris@mvista.com>
Cc: cort@fsmlabs.com, linuxppc-dev@lists.linuxppc.org,
linuxppc-embedded@lists.linuxppc.org
Subject: Re: bootloader & head.S weirdness & restructuring
Date: Tue, 23 Nov 1999 15:20:14 -0500 [thread overview]
Message-ID: <383AF6FE.68C8CFA@netx4.com> (raw)
In-Reply-To: 383ADB77.C06460C4@mvista.com
Christian Zankel wrote:
> I'm sorry, I didn't want to make fun or criticize any of you.
I was just kidding. Some of that is pretty messy, and everytime
I am in there I think I should do something different....tomorrow.
> So, basically, what I wanted to ask you about, is, what you think about
> rearranging some small part of the sources
I have mixed feelings about it, and if you look at past messages
you will have seen me type this before. I really want to separate
the dependent parts, but you have to consider there are still
"generic PPC" components that often get carried into these
dependent areas. For people that are very focused on a
specific processor/board combination (and newbies) this is often
easier to understand. However, for people that are making more
generic PPC changes, every time you update one machine type you
have to track down all of the others and make similar changes.
This not only increases the workload, but also the potential
for making mistakes and requires you test many more configurations
to ensure you haven't broken something on another platform.
The head.S is kind of bad, and we recently split off the 8xx
into its own. I am not sure that was the right thing to do,
but we will live with it for a while.
There are already "machine" dependent files at the lowest
levels, just not in separate directories. The complexity of
the "#ifdefs" at the PPC level is mostly to ensure we get to
the proper lower level dependent files.
Further, because of the integrated nature of some PPC processors,
the line between processor and machine is a little fuzzy. For
example, the 8240 is a 603/MPC106/CHRP...but not exactly. You
can leverage lots of existing code, but need to twist it just
a little in a couple of places. It doesn't fit the processor
and machine model very well.
Someone just can't wake up some afternoon and declare major changes
for the "better". This code has evolved over many years and there
are some subtle things that can't be upset or we take many steps
in the wrong direction. We should try a few new things here and
there let the evolution continue.
> ........ Or, if you would suggest just to add another
> machine into the current code.
Well, since you asked :-). I really like the machine
dependent structures with indirect function calls that was added
a little while back. I would like to see that change into
something that really cleans up the current "setup.c" file.
So, yes, just add the new machine into the current code.
Second, because of my interest in the embedded software on any
of the PPC processors, I would like to see the assumptions about
OF, keyboards, video, or 8259s always present be broken. These
assumptions aren't unique to the PPC port, they exist in other
generic Linux software.
Now, back to the subject line about bootloaders. The "embedded"
Linux images seldom rely on any hardware initialization because
often there is nothing done. This has grown a little out of
control, as each board has its own functions that run to set
up the hardware (including PCI mapping in some cases) before
the Linux kernel is started. I am considering adopting the
machine descriptor for this as well to assist when adding new
board (machine) types. Since the 8xx and 82xx environments
are quite programmable, another option I am considering is
programming all of the address spaces to a "Linux/8xx" space.
This would eliminate some code in mm/init.c and several
board specific include files.
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~1999-11-23 20:20 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-22 11:04 bootloader & head.S weirdness Benjamin Herrenschmidt
1999-11-22 21:37 ` Cort Dougan
1999-11-22 23:17 ` bootloader & head.S weirdness & restructuring Christian Zankel
1999-11-22 23:55 ` Cort Dougan
1999-11-23 3:31 ` Christian Zankel
1999-11-23 3:40 ` Cort Dougan
1999-11-23 6:37 ` Dan Malek
1999-11-23 18:22 ` Christian Zankel
1999-11-23 20:20 ` Dan Malek [this message]
1999-11-25 17:13 ` Geert Uytterhoeven
1999-11-25 19:49 ` Dan Malek
1999-11-26 9:06 ` Geert Uytterhoeven
1999-11-26 9:42 ` Michael Schmitz
1999-11-26 12:06 ` Wolfgang Denk
1999-11-28 22:41 ` Dan Malek
1999-11-29 7:12 ` Geert Uytterhoeven
1999-11-23 16:12 ` Michael Schmitz
1999-11-23 16:17 ` David Edelsohn
1999-11-23 17:46 ` Cort Dougan
1999-11-23 16:15 ` Gabriel Paubert
1999-11-23 16:52 ` Marcus Sundberg
1999-11-23 17:01 ` Gabriel Paubert
1999-11-23 17:45 ` Cort Dougan
1999-11-23 10:35 ` bootloader & head.S weirdness Benjamin Herrenschmidt
1999-11-23 10:50 ` Momchil Velikov
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=383AF6FE.68C8CFA@netx4.com \
--to=dan@netx4.com \
--cc=chris@mvista.com \
--cc=cort@fsmlabs.com \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=linuxppc-embedded@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).