From owner-freebsd-current@FreeBSD.ORG Thu Jun 12 20:26:09 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 B4CBC37B401 for ; Thu, 12 Jun 2003 20:26:09 -0700 (PDT) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3317943F85 for ; Thu, 12 Jun 2003 20:26:09 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-38ldt5g.dialup.mindspring.com ([209.86.244.176] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19QfCU-0002JT-00; Thu, 12 Jun 2003 20:26:03 -0700 Message-ID: <3EE94407.88D481CF@mindspring.com> Date: Thu, 12 Jun 2003 20:24:55 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Evan Dower References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a457be5b7fea7b489c3cba198f59c41d23350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: freebsd-current@freebsd.org Subject: Re: Interest in nvidia-driver debugging on 5-* 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, 13 Jun 2003 03:26:10 -0000 Evan Dower wrote: > >NVIDIA is handling everything to do with the driver. Expect a new > >release "shortly" *cough*. > > I was afraid that might be the case :-( The only thing you care about is entry and exit through driver entry points... and maybe interrupts. It would be easy enough to wrapper all entry points to restore %gs on entry and save it on exit. For the interrupt handler, you would have to mess with the registration mechanism to wrap that. You might be able to get by with poking wrapper routines into the device declaration entry points on module registration with an "if nVidia" hack. This type of hack would actually be best, from the perspective of the performance of everything else, since it would be a one time setup, instead of something that has to be checked on each entry to see if it's happened yet. -- Terry