public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Order in which CDL scripts are processed
@ 2007-06-03 13:25 Mike Sweeney
  2007-06-03 16:18 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Sweeney @ 2007-06-03 13:25 UTC (permalink / raw)
  To: ecos-discuss

While looking through the code for the CYGPKG_HAL_ARM_XSCALE_CORE
package I noticed that it exports some header files to cyg/hal in the
install tree. In particular, it exports hal_cache.h which contains
some cache size definitions and such. Furthermore, some of the generic
ARM platform HAL packages such as the CYGPKG_HAL_ARM_AEB export
hal_cache.h to the same directory. Now, granted since the generic ARM
targets won't include the XScale package there won't be a conflict,
but out of curiousity if I did export a hal_cache.h from an XScale
variant HAL package is there any guarantee as to which hal_cache.h
would end up in the install tree under include/cyg/hal, i.e. the one
from CYGPKG_HAL_ARM_XSCALE_CORE or the one from my XScale variant HAL
package?

In a nutshell, if I export the same header file to the same directory
from two different packages, which one wins out or is it undefined
behavior?

Thanks.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] Order in which CDL scripts are processed
  2007-06-03 13:25 [ECOS] Order in which CDL scripts are processed Mike Sweeney
@ 2007-06-03 16:18 ` Gary Thomas
  2007-06-03 16:33   ` Mike Sweeney
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2007-06-03 16:18 UTC (permalink / raw)
  To: Mike Sweeney; +Cc: ecos-discuss

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike Sweeney wrote:
> While looking through the code for the CYGPKG_HAL_ARM_XSCALE_CORE
> package I noticed that it exports some header files to cyg/hal in the
> install tree. In particular, it exports hal_cache.h which contains
> some cache size definitions and such. Furthermore, some of the generic
> ARM platform HAL packages such as the CYGPKG_HAL_ARM_AEB export
> hal_cache.h to the same directory. Now, granted since the generic ARM
> targets won't include the XScale package there won't be a conflict,
> but out of curiousity if I did export a hal_cache.h from an XScale
> variant HAL package is there any guarantee as to which hal_cache.h
> would end up in the install tree under include/cyg/hal, i.e. the one
> from CYGPKG_HAL_ARM_XSCALE_CORE or the one from my XScale variant HAL
> package?
> 
> In a nutshell, if I export the same header file to the same directory
> from two different packages, which one wins out or is it undefined
> behavior?

Undefined and probably no guaranteed behaviour, so don't do it.

If you need platform and/or variant changes/additions, there are
files for that (which are in turn included by the main hal_cache.h)


- --
- ------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGYunUmaKbSsQGV8ARAqoFAJ9pYUNUwhP8DRH1oH6miCx6qKafqACgpdJ3
F34+z7BFqK71nIUAM7y/yok=
=+08s
-----END PGP SIGNATURE-----

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] Order in which CDL scripts are processed
  2007-06-03 16:18 ` Gary Thomas
@ 2007-06-03 16:33   ` Mike Sweeney
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Sweeney @ 2007-06-03 16:33 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

On 6/3/07, Gary Thomas <gary@mlbassoc.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mike Sweeney wrote:
> > While looking through the code for the CYGPKG_HAL_ARM_XSCALE_CORE
> > package I noticed that it exports some header files to cyg/hal in the
> > install tree. In particular, it exports hal_cache.h which contains
> > some cache size definitions and such. Furthermore, some of the generic
> > ARM platform HAL packages such as the CYGPKG_HAL_ARM_AEB export
> > hal_cache.h to the same directory. Now, granted since the generic ARM
> > targets won't include the XScale package there won't be a conflict,
> > but out of curiousity if I did export a hal_cache.h from an XScale
> > variant HAL package is there any guarantee as to which hal_cache.h
> > would end up in the install tree under include/cyg/hal, i.e. the one
> > from CYGPKG_HAL_ARM_XSCALE_CORE or the one from my XScale variant HAL
> > package?
> >
> > In a nutshell, if I export the same header file to the same directory
> > from two different packages, which one wins out or is it undefined
> > behavior?
>
> Undefined and probably no guaranteed behaviour, so don't do it.
>
> If you need platform and/or variant changes/additions, there are
> files for that (which are in turn included by the main hal_cache.h)
>
>
> - --
> - ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> - ------------------------------------------------------------

Thanks, I wasn't going to do it. I was just curious because I thought
that XScale cores could have either 32KB or 16KB(read this in XScale
core developer's manual) of data and instruction cache based on
implementation but the cache size seems to be defined to be 32KB in
the XScale package which parents the XScale variant and platform HALs.

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-03 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-03 13:25 [ECOS] Order in which CDL scripts are processed Mike Sweeney
2007-06-03 16:18 ` Gary Thomas
2007-06-03 16:33   ` Mike Sweeney

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 read-only IMAP folder(s) and NNTP newsgroup(s).