From: "Grant Likely" <grant.likely@secretlab.ca>
To: "M Ptich" <ptich@hotmail.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Clear OS / HAL separation
Date: Thu, 2 Nov 2006 23:15:53 -0700 [thread overview]
Message-ID: <528646bc0611022215qad62c3br4642dfb40d9db8c1@mail.gmail.com> (raw)
In-Reply-To: <BAY102-F21F34507B25D8615CACD06A9FE0@phx.gbl>
On 11/2/06, M Ptich <ptich@hotmail.com> wrote:
> I am porting 2.6 kernel from Freescale onto our PPC platform. This is my
> first experience with Linux, and I was unpleasantly surprised how poorly OS
> and platform code are separated. So I have a question: is there a project
> underway, somewhere, that is trying to separate OS and HAL (or Board Support
> Package) for the next Linux kernel ?
Can you elaborate on what you mean? From my perspective there is
quite well defined separation between the kernel proper, the device
drivers, and the board setup code.
However, there is no stable kernel API for you to program against, and
this is by design. For details, read the following file in the kernel
source tree: Documentation/stable_api_nonsense.txt
Now, all that being said, there is separation between bootloader and
kernel responsibilities that is currently evolving. Linux 32 bit PPC
support is slowly being migrated from the arch/ppc directory into
arch/powerpc where it is merging with 64 bit ppc support. The
arch/powerpc tree also uses a device tree (binary data structure) to
pass board configuration information from the bootloader to the
kernel. The bootloader is responsible for initializing the board (ie.
SDRAM and certain devices). Since the device tree informs the kernel
what devices are present, most of the kernel code can be generic and
the kernel will only setup device drivers for devices that are
actually present.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
next prev parent reply other threads:[~2006-11-03 6:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-03 3:39 Clear OS / HAL separation M Ptich
2006-11-03 6:15 ` Grant Likely [this message]
[not found] ` <BAY102-F362BE9713459EAE9EED9FAA9FE0@phx.gbl>
2006-11-03 17:47 ` Grant Likely
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=528646bc0611022215qad62c3br4642dfb40d9db8c1@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=linuxppc-dev@ozlabs.org \
--cc=ptich@hotmail.com \
/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).