This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to debug synchronisation in the usbs.c in a new usb-driver for the ARM at91sam7s...
- From: "oliver munz @ s p e a g" <munz at speag dot ch>
- To: "Derek Bouius" <derek dot bouius at sympatico dot ca>, <andrew at lunn dot ch>
- Cc: <ecos-discuss at sourceware dot org>
- Date: Thu, 16 Feb 2006 17:47:08 +0100
- Subject: Re: [ECOS] How to debug synchronisation in the usbs.c in a new usb-driver for the ARM at91sam7s...
- References: <20060216161521.EVVS4713.tomts43-srv.bellnexxia.net@derekwin>
- Reply-to: "oliver munz @ s p e a g" <munz at speag dot ch>
Thanks for the solution...
Does this work whitout kernel? Would it be better to use event-flags?
Thanks
Oliver Munz
----- Original Message -----
From: "Derek Bouius" <derek.bouius@sympatico.ca>
To: <andrew@lunn.ch>; <munz@speag.ch>
Cc: <ecos-discuss@sourceware.org>
Sent: Thursday, February 16, 2006 5:15 PM
Subject: Re: [ECOS] How to debug synchronisation in the usbs.c in a new
usb-driver for the ARM at91sam7s...
I am not registered for the mailing list, but peruse it once in a while, so
I am not sure if my mail will go through to it. Feel
free to repost it if it doesn't.
What we did to fix the locking issue was change the mutex to a semaphore.
See the patch. It seems to work reliably.
Cheers,
Derek
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss