Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2003 11:03:09 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        Daniel Eischen <eischen@pcnet.com>
Cc:        threads@freebsd.org
Subject:   Re: nvidia OpenGL and lib{thr,kse} related crash
Message-ID:  <Pine.BSF.4.21.0306161056350.19977-100000@InterJet.elischer.org>
In-Reply-To: <Pine.GSO.4.10.10306111505130.12620-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 11 Jun 2003, Daniel Eischen wrote:

> On Wed, 11 Jun 2003, Matthew N. Dodd wrote:
> 
> > On Thu, 12 Jun 2003, Alexander Nedotsukov wrote:
> > > Does some one know any nvidia developer to point them out on this fact?
> > 
> > The NVIDIA drivers uses %gs for TLS.

Ugghh!

Can you be more specific about this?
when you say "driver", do you mean a kernel driver or a userland
program.
I assume it's a userland pseudo-driver that links with pthreads to
achieve its threads?

Geez. why don't they use the per-thread-storage that the library
provides?

What makes them think that %gs is free? I think that linux will start
using %gs for the TLS too as well soon.

It's used for Thread-local-storage in the pthreads library too,
so they trash each other's TLS.

do they allocate LDT entries to back their own storage?

> 
> That makes them pretty much useless in -current, especially since
> libc_r is on the way out.
> 
> One wonders why they use pthread_key_create() et al, and still
> need TLS.
> 
> > I suppose I should have mentioned this.
> 
> Probably :-)
> 
> -- 
> Dan Eischen
> 
> _______________________________________________
> freebsd-threads@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0306161056350.19977-100000>