This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: interrupts and scheduling
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Harish Kulkarni <wasinapple at yahoo dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Fri, 2 Sep 2005 15:07:59 +0200
- Subject: Re: [ECOS] interrupts and scheduling
- References: <20050902125444.33231.qmail@web30408.mail.mud.yahoo.com>
On Fri, Sep 02, 2005 at 01:54:44PM +0100, Harish Kulkarni wrote:
> Hello,
>
> We have two interrupts one at every .5msecs(INT1) and
> other every 1 msec(INT2).
>
> In our application we have two threads. When INT1 is
> enabled/handled the scheduler is not able to schedule
> the threads.
>
> Where as when only INT2 is enabled both the threads
> get scheduled.
>
> We have tried this using mlq and bit-map. But found
> threads scheduling not working when INT1 is enabled.
>
> The INT1 ISR routine execution time taken is 1.3
> micro-secs.
Are your ISR & DSR functions doing things they are not allowed to do?
ISRs cannot call any eCos kernel functions. DSRs cannot call any
functions which block.
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