diff options
author | phk <phk@FreeBSD.org> | 1999-05-07 10:11:40 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-07 10:11:40 +0000 |
commit | 693dd58bb3e5843d252e25a15e2cc8d49323cb82 (patch) | |
tree | a0fbea49edf11184c1bafaed7d5b3cd858742449 /sys/kern/kern_shutdown.c | |
parent | cfcd3ae08c30d66088e1ad5ffa68aa05b60e1bfe (diff) | |
download | FreeBSD-src-693dd58bb3e5843d252e25a15e2cc8d49323cb82.zip FreeBSD-src-693dd58bb3e5843d252e25a15e2cc8d49323cb82.tar.gz |
Continue where Julian left off in July 1998:
Virtualize bdevsw[] from cdevsw. bdevsw() is now an (inline)
function.
Join CDEV_MODULE and BDEV_MODULE to DEV_MODULE (please pay attention
to the order of the cmaj/bmaj arguments!)
Join CDEV_DRIVER_MODULE and BDEV_DRIVER_MODULE to DEV_DRIVER_MODULE
(ditto!)
(Next step will be to convert all bdev dev_t's to cdev dev_t's
before they get to do any damage^H^H^H^H^H^Hwork in the kernel.)
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r-- | sys/kern/kern_shutdown.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 7a8d8ee..2c51ac7 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 - * $Id: kern_shutdown.c,v 1.48 1999/05/03 23:57:22 billf Exp $ + * $Id: kern_shutdown.c,v 1.49 1999/05/06 18:12:44 peter Exp $ */ #include "opt_ddb.h" @@ -377,14 +377,14 @@ dumpsys(void) return; if (dumpdev == NODEV) return; - if (!(bdevsw[major(dumpdev)])) + if (!(bdevsw(major(dumpdev)))) return; - if (!(bdevsw[major(dumpdev)]->d_dump)) + if (!(bdevsw(major(dumpdev))->d_dump)) return; dumpsize = Maxmem; printf("\ndumping to dev %lx, offset %ld\n", (u_long)dumpdev, dumplo); printf("dump "); - switch ((*bdevsw[major(dumpdev)]->d_dump)(dumpdev)) { + switch ((*bdevsw(major(dumpdev))->d_dump)(dumpdev)) { case ENXIO: printf("device bad\n"); |