[coldfire-gnu-discuss] NPTL on 547x cpus
Luigi 'Comio' Mantellini
luigi.mantellini at idf-hit.com
Fri May 14 13:39:05 UTC 2010
venerdì 14 maggio 2010 15:20 Maxim Kuvyrkov <maxim at codesourcery.com> ha
scritto:
> On 5/14/10 5:08 PM, Luigi 'Comio' Mantellini wrote:
> > Now, I'm interested to use the last 4.4-217 in order to use the nptl
> > implementation, but unfortunately the pthread seems to be broken.
>
> What do you mean by "broken"?
I have an heavy threaded application that uses mutexes, semaphores. The code
generated by compiler, keeps some constants (for optimization reason) in
registers, then are used in a infinite loop.
Using the lauterbach debugger, I noticed that the registers are not correctly
restored returning by signal.
CONST1=...
CONST2=...
for (;;) {
<---------- interrupted by signal ---------->
use CONST1
use CONST2
...
}
I'm sorry but I cannot provide a better description now because I haven't
access to debug facilities for the next days.
>
> Did you apply the kernel patch that the Getting Started Guide mentions?
>
I applied the requested patch for the 4.4-217 and kernel 2.6.25
> To add NPTL support to current ColdFire kernels one needs to apply one
> of the patches linked in this knowledge base entry:
> https://support.codesourcery.com/GNUToolchain/kbentry52 .
>
> ...
>
> > Has anyone used and tested the 4.4-x toolchains? I would like to have
> > feedback from cf developers
>
> We at CodeSourcery run thousands, if not not millions, tests for each
> release. Testing of 4.4-217 release included GLIBC testsuite which has
> many tests for libpthread.
I know the CS releases high quality toolchains. I'm supposing that somethins
is wrong in my kernel (I started with the 2.6.10 and I ported by hand to
2.6.23 and .25).
I can provide my patchset for the kernel if you are interested.
best regards,
luigi
--
Luigi 'Comio' Mantellini
R&D - Software
Industrie Dial Face S.p.A.
Via Canzo, 4
20068 Peschiera Borromeo (MI) Italy
Tel.: +39 02 5167 2813
Fax: +39 02 5167 2459
E-mail: luigi.mantellini at idf-hit.com
Website: http://www.idf-hit.com
Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle
persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla
conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate
ricevuto questo documento per errore siete cortesemente pregati di darne
immediata comunicazione al mittente e di provvedere alla sua distruzione,
Grazie.
Rispetta l'ambiente. Non stampare questa mail se non è realmente necessario.
This e-mail and any attachments is confidential and may contain privileged
information intended for the addressee(s) only. Dissemination, copying,
printing or use by anybody else is unauthorized. If you are not the intended
recipient, please delete this message and any attachments and advise the
sender by return e-mail, Thanks.
Help the environment. Please do not print this email unless it is absolutely
necessary.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20100514/50713628/attachment.pgp>
More information about the coldfire-gnu-discuss
mailing list