From owner-freebsd-current@FreeBSD.ORG Fri Jul 11 08:26:52 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 971F737B401 for ; Fri, 11 Jul 2003 08:26:52 -0700 (PDT) Received: from boromir.vpop.net (dns1.vpop.net [207.178.248.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26BCE43FB1 for ; Fri, 11 Jul 2003 08:26:52 -0700 (PDT) (envelope-from mreimer@vpop.net) Received: from vpop.net (bilbo.vpop.net [65.103.33.41]) by boromir.vpop.net (Postfix) with ESMTP id 675EB3A6A94 for ; Fri, 11 Jul 2003 08:26:50 -0700 (PDT) Message-ID: <3F0ED74E.7020102@vpop.net> Date: Fri, 11 Jul 2003 10:27:10 -0500 From: Matthew Reimer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030701 X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: NVidia driver stability? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2003 15:26:52 -0000 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; }