From owner-freebsd-current@FreeBSD.ORG Fri Aug 1 16:14:54 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 AE29C37B401; Fri, 1 Aug 2003 16:14:54 -0700 (PDT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23CA243F75; Fri, 1 Aug 2003 16:14:54 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc12) with ESMTP id <2003080123143801400n0nh1e>; Fri, 1 Aug 2003 23:14:38 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA47448; Fri, 1 Aug 2003 16:14:31 -0700 (PDT) Date: Fri, 1 Aug 2003 16:14:28 -0700 (PDT) From: Julian Elischer To: David Xu In-Reply-To: <200308020647.18039.davidxu@FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@FreeBSD.org Subject: Re: NVidia glx stuff dies in sysarch(I386_SET_LDT, ...) 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, 01 Aug 2003 23:14:55 -0000 On Sat, 2 Aug 2003, David Xu wrote: > On Saturday 02 August 2003 06:24, Munish Chopra wrote: > > On 2003-08-02 00:20 +0200, Thorsten Greiner wrote: > > > * Daniel Eischen [2003-08-02 00:06]: > > > > I think the bug was in the old code allowing this to > > > > happen... > > > > > > Well, than someone should tell that to NVidia. Their driver is > > > closed source and comes without "user servicable parts". > > > > > > Regards > > > -Thorsten > > > > That's going to be a lot easier to get through if someone can confirm > > whether 0-16 are reserved, or whether (like julian says), 6-15 are > > actually safe and something else is being clobbered. > > #define LSYS5CALLS_SEL 0 /* forced by intel BCS */ > #define LSYS5SIGR_SEL 1 > #define L43BSDCALLS_SEL 2 /* notyet */ > #define LUCODE_SEL 3 > #define LSOL26CALLS_SEL 4 /* Solaris >= 2.6 system call gate */ > #define LUDATA_SEL 5 > /* separate stack, es,fs,gs sels ? */ > /* #define LPOSIXCALLS_SEL 5*/ /* notyet */ > #define LBSDICALLS_SEL 16 /* BSDI system call gate */ > #define NLDT (LBSDICALLS_SEL + 1) > > LUCODE_SEL is used by kernel to load _ucodesel to user %cs > LUDATA_SEL is used by kernel to load _udatasel to user %ds, %es, %fs, %gs. > I didn't check other ABIs, but setting to a fixed location of LDT in userland > is also a bad idea, I think it will conflict with thread library soon, > it is better to use dynamic allocating facility newly added in i386_set_ldt. Of course, but there are pre-exisiting binaries that use a selector of 6. > > David Xu > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >