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]

Re: semaphore bug??


On Wed, Aug 15, 2001 at 11:49:32AM +1000, Geoff Patch wrote:
> 
> Hi Folks,
> 
> > I don't think you can post to a semaphore from an ISR.  You'll
> > have to run a DSR and do it there.  There's a table in the eCos
> > Reference Manual (Device Driver Interface to the Kernel) that
> > shows what functions may be called from an ISR.  About the only
> > thing you can do is ack/mask/unmask interrupts and run a DSR.
> 
> This is correct, and I recall other postings to the list about this issue. 
>  It's obviously a fairly common misconception.

How about adding an assertion check to semaphores and mutex etc. If
they are called from within an ISR throw an assertion.

        Andrew


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