glibc, linuxthreads, floating stacks
Robert Millan
rmh at aybabtu.com
Tue Dec 13 17:25:22 UTC 2005
On Mon, Dec 12, 2005 at 10:39:09PM +0100, Petr Salinger wrote:
> Hi all!
Hi Petr!
> During last search due to problems with thread signaling
> I found cmd I386_SET_GSBASE for sysarch().
> This is similar to linux-2.6 set_thread_area().
>
> It is rather easy to enable FLOATING_STACKS in glibc/linuxthreads
> for our current kfreebsd-5 kernel. The same syscall can be also
> used later to enable __thread keyword and whole TLS.
>
> The attached pt-machine.h should go into
> glibc-2.3/linuxthreads/sysdeps/unix/bsd/bsd4.4/kfreebsd/i386/i486/pt-machine.h
>
> It applies to both glibc 2.3.0 and 2.3.5, successfully tested with 2.3.0.
Just a sidenote: it seems this pt-machine.h is heavily based on another version
of this file, although I'm not sure which one. Have you considered something
like this to avoid repetition of code?:
#include_next <pt-machine.h>
[ kfreebsd-specific stuff ]
(the include_next gcc hack is widely used on glibc, so upstream would be ok with
that, I think)
> BTW, is there any progress for glibc 2.3.5 ?
> Can I help with something ?
Sorry I don't know. You'll have to ask Aurelien.
--
Robert Millan
"it's about trust... i don't trust them. that's all i need to know."
(wrt Digital Restriction Management, seen in Slashdot)
More information about the Glibc-bsd-devel
mailing list