Interest in nvidia-driver debugging on 5-*

Terry Lambert tlambert2 at mindspring.com
Thu Jun 12 20:26:10 PDT 2003


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


More information about the freebsd-current mailing list