This is the mail archive of the ecos-discuss@sources.redhat.com 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: i386 affects IRQ lines?


Nick,

Thanks for the response.  I've got it working now!
Here's what I found out (I'm using C++):
Depending on your configuration, eCos creates
a dummy main() even when you are using 
cyg_user_start() and don't need main().
My code that controlled the interrupt source
was in a class that I created as a static object
in my thread.  The guys at Alliant (they're in the
same building with me) pointed out that the 
destructors of all static objects are called
when main() exits.  So my destructor was being
(secretly to me) called and this stopped the
interrupts.

I've changed my configuration to not use a main().
No more static objects in my code either.  It's 
subtle stuff for this Mech. E. but probably more
obvious to others.

Thanks for the info on PIC's I'll save that for when
things get wierd in the future.  I'll know where to
start reseaching.

Thanks,
Bob H



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


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