This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: Possible deadlock in SPI driver for AT91 ARM target
- From: "Rob Duncan" <rob dot duncan at designmagnitude dot com>
- To: "Svend Meyland Nicolaisen" <ecos at smn dot dk>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 4 Mar 2008 09:11:08 -0800
- Subject: Re: [ECOS] Re: Possible deadlock in SPI driver for AT91 ARM target
- References: <47CC1D21.4070801@eCosCentric.com> <SATURN-VLDiKBsuZ2K40000037f@sagio.com>
On 3/4/08, Svend Meyland Nicolaisen <ecos@smn.dk> wrote:
> > If a thread goes to sleep, the DSRs get unlocked again. When
> > the thread becomes runnable and is rescheduled, DSRs are
> > relocked. You could consider this to mean that the scheduler
> > lock is a per-thread property.
> >
>
> Ahh, thank you for your answer. Might be a good point to add to the
> documentation..... :-)
I was confused by this to begin with as well. It is actually in the
documentation but it's a bit easy to overlook. Look at the
description of cyg_drv_cond_wait() in the Driver API section of the
Reference Manual.
Rob.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss