Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2003 10:27:10 -0500
From:      Matthew Reimer <mreimer@vpop.net>
To:        current@freebsd.org
Subject:   Re: NVidia driver stability?
Message-ID:  <3F0ED74E.7020102@vpop.net>
In-Reply-To: <lists.freebsd.current.20030711094342.C3392@alpha.yumyumyum.org>
References:  <lists.freebsd.current.20030711035132.GB21440@kokeb.ambesa.net> <lists.freebsd.current.20030711094342.C3392@alpha.yumyumyum.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Kenneth Culver wrote:
>>I don't know if this is relevant, but the NVidia drivers won't work with
>>libkse or libthr, because it messes with the %gs segment register, which
>>both threading libraries use. The only threading library it currently
>>works with is libc_r.
> 
> 
> Actually from what I hear that's not accurate. It only works with the
> linuxthreads port.

FWIW, the patch below (from doc/machdep.c.diff in the port) makes the 
drivers work fine on my -stable box, even with KDE GL apps. I'm also 
building the nvidia port with WITH_FREEBSD_AGP=yes WITH_NVIDIA_HACKS=yes.

Matt

Index: machdep.c
===================================================================
RCS file: /home/ncvs/src/sys/i386/i386/machdep.c,v
retrieving revision 1.385.2.28
diff -d -u -r1.385.2.28 machdep.c
--- machdep.c   22 Jan 2003 20:14:52 -0000      1.385.2.28
+++ machdep.c   8 May 2003 20:05:06 -0000
@@ -742,8 +742,6 @@
         regs->tf_cs = _ucodesel;
         regs->tf_ds = _udatasel;
         regs->tf_es = _udatasel;
-       regs->tf_fs = _udatasel;
-       load_gs(_udatasel);
         regs->tf_ss = _udatasel;
  }




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F0ED74E.7020102>