cvs commit: src/sys/dev/rp rp.c rp_pci.c rpreg.h
Andrew Gallatin
gallatin at FreeBSD.org
Mon Jun 21 06:02:46 PDT 2004
gallatin 2004-06-21 13:02:25 UTC
FreeBSD src repository
Modified files:
sys/dev/rp rp.c rp_pci.c rpreg.h
Log:
Prevent the rp driver from panic'ing on first access and make at
least the pci device unloadable
- Use ttymalloc() rather than a plain malloc to allocate the
rp->rp_tty ttys. This is now required due to the recent locking
changes to ttys and prevents a panic due to locking an unitialized
t_mtx.
- Allow the pci driver to be unloaded. This involved moving
the call rp_releaseresource() to the end of rp_pcireleaseresource(),
since rp_pcireleaseresource() uses ctlp->dev, which is freed
by rp_releaseresource().
- Allow the generic part of the driver to be unattached by providing
a hook to cancel timeouts.
Glanced at by: obrien
Revision Changes Path
1.61 +26 -21 src/sys/dev/rp/rp.c
1.9 +6 -7 src/sys/dev/rp/rp_pci.c
1.6 +1 -1 src/sys/dev/rp/rpreg.h
More information about the cvs-src
mailing list