This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARM EABI port / static constructor priority removal


On Wed, Mar 26, 2008 at 02:24:28PM -0400, Chris Zimman wrote:
> > This won't work. For example, some watchdog drivers need the I2C
> > subsystem to be initialized before they can be initialized. The IO
> > layer must be initialised before libc etc. If you get these in the
> > wrong order, expect bad things to happen.
> 
> I don't understand why you think "this won't work" when "this" is exactly
> what the static constructors are doing, except instead of being in one
> translation unit, they're in multiple.  Perhaps you're missing what I'm
> saying -- I understand that things have to happen in order.  What I'm saying
> is that I don't think static constructors are necessarily the best way to
> accomplish this.

So back to my original question, what is your concept for replacing
them with something else. How are you going to ensure things happen in
the right order.

    Andrew

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]