This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: problem with clock IRQ
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Giuseppe Monteleone <info at ing-monteleone dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 24 Mar 2005 13:14:05 -0700
- Subject: Re: [ECOS] problem with clock IRQ
- Organization: MLB Associates
- References: <200503241951.j2OJpoJr024064@daitarn5.register.it>
On Thu, 2005-03-24 at 20:51 +0200, Giuseppe Monteleone wrote:
> hi all
> i have a problem with an ARM7 porting of ecos. Where is the best
> place to reenable IRQ ? in hal_hardware_init is not good because
> the system constructors have not been initialized. I have seen
> other port that put that initialization in cyg_start. Is correct ?
It should not be necessary to explicitly enable interrupts.
This is done implicitly when the scheduler is started by arranging
that all threads start up with interrupts enabled.
If your application only has a cyg_start() function, then you
should finish it with a call to cyg_scheduler_start() once you
have your threaded environment set up.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss