Re: svn commit: r232582 - head/lib/libc/gen

2012-03-13 Thread Oleksandr Tymoshenko
On 13/03/2012 9:21 AM, Marcel Moolenaar wrote: On Mar 5, 2012, at 7:42 PM, Oleksandr Tymoshenko wrote: @@ -308,6 +308,13 @@ _init_tls() } } +#ifdef TLS_VARIANT_I + /* +* tls_static_space should include space for TLS structure +*/ + tls_static

Re: svn commit: r232582 - head/lib/libc/gen

2012-03-13 Thread Marcel Moolenaar
On Mar 5, 2012, at 7:42 PM, Oleksandr Tymoshenko wrote: > @@ -308,6 +308,13 @@ _init_tls() > } > } > > +#ifdef TLS_VARIANT_I > + /* > + * tls_static_space should include space for TLS structure > + */ > + tls_static_space += TLS_TCB_SIZE; > +#endif > + How d

svn commit: r232582 - head/lib/libc/gen

2012-03-05 Thread Oleksandr Tymoshenko
Author: gonzo Date: Tue Mar 6 03:42:54 2012 New Revision: 232582 URL: http://svn.freebsd.org/changeset/base/232582 Log: - Switch ARM and MIPS to TLS Variant I - Fix TLS allocation for Variant I: both rtld and libc allocators assume that tls_static_space includes space for TLS structure