This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: hal/i386/pc prerelease.
Jesper Skov <jskov@cygnus.co.uk> writes:
> The vectors.S should contain mostly platform neutral code. When
> there's a need for platform specific stuff, it should be handled via
> macros/calls defined by platform files.
>
> The current i386 HAL is a bit out of shape in this regard. The ARM HAL
> is a better example of how things should be handled for multiple
> platforms.
Even better, look at the MIPS HAL. This is the way all future HALs
will be built, with architecture, variant and platform sub-HALs with
well-defined ways for them to pass information to each other and
override things.
--
Nick Garnett mailto:nickg@cygnus.co.uk
Cygnus Solutions, UK http://www.cygnus.co.uk