This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: i386 affects IRQ lines?
- From: Bob Holmberg <bob_holmberg at yahoo dot com>
- To: Nick Garnett <nickg at ecoscentric dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 16 May 2003 10:37:43 -0700 (PDT)
- Subject: Re: [ECOS] 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