This is the mail archive of the ecos-discuss@sourceware.org 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: interrupts and scheduling


Hello,

We are using cyg_interrupt_mask(), cyg_interrupt_ack()
and cyg_interrupt_unmask().

And doing nothing but some debug variable increaments.

-Thanks
Harish

--- Andrew Lunn <andrew@lunn.ch> wrote:

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


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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


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