Correct threads hanging situation on SMP architecture

Christophe Coutand ccoutand@stmi.com
Fri Apr 23 10:08:00 GMT 2010


Hi,

Related to post
http://ecos.sourceware.org/ml/ecos-discuss/2010-04/msg00026.html, here
is a possible small patch to avoid thread "hanging" situation on SMP
targets. It can be easily reproduced using the FreeBSD network stack and
HTTPD packages. Call to cyg_thread_self() in spl_any()
(packages\net\bsd_tcpip\current\src\ecos\synchc) can return wrong value.

Regards,
Christophe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20100423/a2dda23c/attachment.txt>


More information about the Ecos-patches mailing list