public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Initialization routines take too long?
@ 2000-11-10 11:42 Grant Edwards
  2000-11-10 13:12 ` Grant Edwards
  0 siblings, 1 reply; 8+ messages in thread
From: Grant Edwards @ 2000-11-10 11:42 UTC (permalink / raw)
  To: ecos-discuss

I've discovered that if my driver initialization routines take
too long, my system chokes and dies.  At first I though it was
specific changes to drivers that were causing the problem.  But
after extensive gnashing of teath and rending of cloathes it
seems to be the total elapsed time that causes problems, rather
than any specific chunk of code.

It seems that if my first 10ms timer tick occurs before system
initialization is complete, something gets corrupted and the
system crashes in various different ways.  I can make the
problem go away by either printing less diagnostic stuff
(that's where most of the time goes) in my init routines, or by
changing the 10ms tick to a larger value.

Any suggestions on eliminating the requirement than init be
completed in 10ms?

-- 
Grant Edwards
grante@visi.com

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [ECOS] Initialization routines take too long?
@ 2000-11-10 11:58 Fabrice Gautier
  2000-11-10 12:02 ` Grant Edwards
  0 siblings, 1 reply; 8+ messages in thread
From: Fabrice Gautier @ 2000-11-10 11:58 UTC (permalink / raw)
  To: 'Grant Edwards', ecos-discuss

> -----Original Message-----
> From: Grant Edwards [ mailto:grante@visi.com ]
> Subject: [ECOS] Initialization routines take too long?
> 
> It seems that if my first 10ms timer tick occurs before system
> initialization is complete, something gets corrupted and the
> system crashes in various different ways.

Why should your timer be initialized before everything it needs is
initialized?

Maybe it's a problem in the constructors priority order.

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [ECOS] Initialization routines take too long?
@ 2000-11-10 12:11 Fabrice Gautier
  2000-11-10 12:17 ` Grant Edwards
  2000-11-10 12:19 ` Gary Thomas
  0 siblings, 2 replies; 8+ messages in thread
From: Fabrice Gautier @ 2000-11-10 12:11 UTC (permalink / raw)
  To: 'Grant Edwards'; +Cc: ecos-discuss

> -----Original Message-----
> From: Grant Edwards [ mailto:grante@visi.com ]
> Subject: Re: [ECOS] Initialization routines take too long?
> 
> 
> On Fri, Nov 10, 2000 at 11:57:05AM -0800, Fabrice Gautier wrote:
> 
> > > It seems that if my first 10ms timer tick occurs before system
> > > initialization is complete, something gets corrupted and the
> > > system crashes in various different ways.
> > 
> > Why should your timer be initialized before everything it needs is
> > initialized?
> 
> I'm not sure what you mean.  The timer doesn't need anything
> else to be initialized before it is initialized.

I meant that maybe your timer IRQ handler used some classes (Counter, Alarm
maybe...) which constructor had not been called before your handler is
called. 
 
> > Maybe it's a problem in the constructors priority order.
> 
> I think it's more likely a problem with what happens when the
> ARM IRQ is finally enabled.  It appears that the system crashes
> if there is a pending interrupt when that happens.

Strange, that would mean you can't disable and reenable the IRQ without
problem...

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

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

end of thread, other threads:[~2000-11-10 13:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-10 11:42 [ECOS] Initialization routines take too long? Grant Edwards
2000-11-10 13:12 ` Grant Edwards
2000-11-10 11:58 Fabrice Gautier
2000-11-10 12:02 ` Grant Edwards
2000-11-10 12:11 Fabrice Gautier
2000-11-10 12:17 ` Grant Edwards
2000-11-10 12:19 ` Gary Thomas
2000-11-10 12:41   ` Grant Edwards

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).