diff options
author | julian <julian@FreeBSD.org> | 1995-12-21 20:09:46 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1995-12-21 20:09:46 +0000 |
commit | bd3219428d6088d6f80af985e1217495b519c70f (patch) | |
tree | 3d190bca829dfcee3724b0d320a7c430ab0f75fb /sys/vm | |
parent | c97c43c68d4fe1d3db00b06167516a25d8d9e62a (diff) | |
download | FreeBSD-src-bd3219428d6088d6f80af985e1217495b519c70f.zip FreeBSD-src-bd3219428d6088d6f80af985e1217495b519c70f.tar.gz |
i386/i386/conf.c is no longer needed.. remove it from files.i386
redistribute a few last routines to beter places and shoot the file
I haven't act actually 'deleted' the file yet togive people time
to
have done a config.. I.e. they are likely to have done one in a week or so
so I'll remove it then..
it's now empty.
makes the question of a USL copyright rather moot.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_swap.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c index 6128f64..8720286 100644 --- a/sys/vm/vm_swap.c +++ b/sys/vm/vm_swap.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)vm_swap.c 8.5 (Berkeley) 2/17/94 - * $Id: vm_swap.c,v 1.32 1995/12/13 15:13:57 julian Exp $ + * $Id: vm_swap.c,v 1.33 1995/12/14 09:55:12 phk Exp $ */ #include <sys/param.h> @@ -56,18 +56,31 @@ static void swstrategy __P((struct buf *)); #define CDEV_MAJOR 4 #define BDEV_MAJOR 1 +extern struct cdevsw sw_cdevsw ; static struct bdevsw sw_bdevsw = { noopen, noclose, swstrategy, noioc, /*1*/ - nodump, nopsize, NULL, "sw", NULL, -1 }; + nodump, nopsize, NULL, "sw", &sw_cdevsw, -1 }; static struct cdevsw sw_cdevsw = { nullopen, nullclose, rawread, rawwrite, /*4*/ noioc, nostop, noreset, nodevtotty,/* swap */ - noselect, nommap, swstrategy, "sw", NULL, -1 }; + noselect, nommap, swstrategy, "sw", + &sw_bdevsw, -1 }; /* + * Swapdev is a fake device implemented + * in sw.c used only internally to get to swstrategy. + * It cannot be provided to the users, because the + * swstrategy routine munches the b_dev and b_blkno entries + * before calling the appropriate driver. This would horribly + * confuse, e.g. the hashing routines. Instead, /dev/drum is + * provided as a character (raw) device. + */ +dev_t swapdev = makedev(BDEV_MAJOR, 0); + +/* * Indirect driver for multi-controller paging. */ |