Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2003 16:10:59 -0400 (EDT)
From:      Daniel Eischen <eischen@pcnet.com>
To:        Andy Ritger <ARitger@nvidia.com>
Cc:        Gareth Hughes <gareth@nvidia.com>
Subject:   Re: NVIDIA and TLS
Message-ID:  <Pine.GSO.4.10.10306161556500.19940-100000@pcnet5.pcnet.com>
In-Reply-To: <Pine.LNX.4.44.0306141841260.29979-100000@stravinsky.nvidia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 14 Jun 2003, Andy Ritger wrote:
> 
> I'd like to add a few comments to what has recently been said here
> and on freebsd-current to clarify what the %gs register is used
> for by the NVIDIA driver and what ideally would be done to allow
> the NVIDIA driver to coexist with FreeBSD threading implementations.
> 
> The NVIDIA driver does not need %gs to maintain internal state in the
> kernel; rather, it uses it to maintain fast thread local data for the
> OpenGL implementation, where it is critically important to have fast
> (single instruction) access to such data.

Take 2.  After thinking a bit more...

I guess OpenGL (or OpenGL implementation interfaces to the
NVIDIA driver) doesn't have thread-safe interfaces.  Instead
of trying to change the interface of the OS, why not change
(or add) OpenGL or NVIDIA driver interfaces so that there
is not a need for TLS?

-- 
Dan Eischen



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