2009-12-17 05:56:06     Native Posix Thread Linux (NPTL) and Thread Local Storage (TLS) supprt state?

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2009-12-17 05:56:06     Native Posix Thread Linux (NPTL) and Thread Local Storage (TLS) supprt state?

Konstantin Hartwich (GERMANY)

Message: 83642   

 

hi there

 

does anyone know the current development state of NPTL for blackfin uClibc? i took a look in the trunk of toolchain under uClibc and found under libpthread only the linuxthread implementation stuff. but in docu I found at

 

  docs.blackfin.uclinux.org/doku.php?id=toolchain:application_binary_interface&s[]=nptl

 

".. GR29 reserved for that purpose" (NPTL)"

 

  www.kernel.org/doc/ols/2006/ols2006v1-pages-409-420.pdf

 

states that NPTL should be available for uClibc, at least in experimental state, ARM toolchain seems to support it already for their project.

 

How far is the development for the blackfin toolchain?

 

thanks for clarifying this.

QuoteReplyEditDelete

 

 

2009-12-17 05:57:52     Re: Native Posix Thread Linux (NPTL) and Thread Local Storage (TLS) supprt state?

Mike Frysinger (UNITED STATES)

Message: 83643   

 

there is no TLS support in the Blackfin toolchain and there probably wont be for some time

QuoteReplyEditDelete

 

 

2009-12-17 06:03:20     Re: Native Posix Thread Linux (NPTL) and Thread Local Storage (TLS) supprt state?

Konstantin Hartwich (GERMANY)

Message: 83644   

 

thanks mike,

 

what are the main reasons for not having it? is it of technical nature or just lack of time for development. i'm asking cause TLS is used quite often.

 

i'm on porting Ultimate++ stuff to blackfin environment, which also comes with a custom heap allocator (one could tweak that to own purposes) and it also relys on TLS.

QuoteReplyEditDelete

 

 

2009-12-17 06:08:34     Re: Native Posix Thread Linux (NPTL) and Thread Local Storage (TLS) supprt state?

Mike Frysinger (UNITED STATES)

Message: 83645   

 

TLS is not trivial at any level, and there hasnt been very much demand for it from people

QuoteReplyEditDelete

 

 

2009-12-17 06:26:52     Re: Native Posix Thread Linux (NPTL) and Thread Local Storage (TLS) supprt state?

Konstantin Hartwich (GERMANY)

Message: 83646   

 

but it seems as if thoughts have been spent on it already and the "register GR29" is kind of a preparation for it, so why not making the toolchain a bit more complete.. multithreading could profit from it..

QuoteReplyEditDelete

 

 

2009-12-17 06:31:44     Re: Native Posix Thread Linux (NPTL) and Thread Local Storage (TLS) supprt state?

Mike Frysinger (UNITED STATES)

Message: 83647   

 

no it hasnt.  as the FDPIC section of ABI document states, there are a few places where FRV info is still present.  the GR29 is one such example, and it has now been deleted.

 

ive already told you why the state of TLS is what it is.

QuoteReplyEditDelete

 

 

2009-12-17 06:37:59     Re: Native Posix Thread Linux (NPTL) and Thread Local Storage (TLS) supprt state?

Konstantin Hartwich (GERMANY)

Message: 83648   

 

thanks for answering was just curious

QuoteReplyEditDelete

Attachments

    Outcomes