On 10/7/10 1:22 AM, Jonathan S. Shapiro wrote:
> One change we made going from EROS to Coyotos to introduce a clearer
> separation between the "board support package" (BSP) and the target
> architecture. The BSP subsystem addresses things like boostrap and
> non-generic configuration. The architecture subsystem deals with things
> like processor initialization. As we did this, we also introduced a
> hardware abstraction layer that more clearly delineates the line between
> arch-dependent and arch-independent dependencies.

Do you mean, the HAL defines the *interface* between 
architecture-dependent and architecture-independent *code*?

CapROS has such an interface but it is not well organized.

> I haven't looked to see if Charlie has introduced a BSP distinction into
> CapROS, but if that hasn't been done, perhaps now is the time.

Indeed. I see a few models for doing that.

The one place where this is now done in CapROS is in 
src/base/domain/drivers/lwip which has:

arch/arm/edb9315/

or more generally

arch/<architecture>/<board>/

Files and/or directories common to more than one board are in the directory

arch/<architecture>/

In Coyotos src/sys/ I see:

arch/coldfire/BSP/ads-aps

or more generally

arch/<architecture>/BSP/<board>/

In Linux I see:

arch/arm/mach-ep93xx/edb9315.c

I think I prefer the CapROS lwip design. Compared to Coyotos it 
eliminates the BSP directory. I don't know that this extra level of 
directory serves a useful purpose, and it seems unlikely that a board 
name would conflict with any other file or directory name in 
arch/<architecture>/. A possible alternative is:

arch/<architecture>/bsp-<board>/

It's conceivable that to accommodate systems-on-a-chip we might want:

arch/<architecture>/<SOC>/<board>/

for example

arch/arm/ep93xx/edb9315/
arch/arm/omapl138/hawk/

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
CapROS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/capros-devel

Reply via email to