A bit of a hack, but allows the vn device to be a module again.

Submitted by: Matt Dillon <dillon@freebsd.org>
This commit is contained in:
Julian Elischer 1999-03-14 20:40:15 +00:00
parent cae59b3d6a
commit 0237469f43
2 changed files with 18 additions and 4 deletions

View File

@ -1,11 +1,11 @@
# $Id: Makefile,v 1.51 1999/02/22 11:44:35 newton Exp $
# $Id: Makefile,v 1.52 1999/03/14 09:20:01 julian Exp $
# XXX present but broken: ip_mroute_mod vn
# XXX present but broken: ip_mroute_mod
# XXX not yet completed porting: acd
# XXX builds but not updated: atapi
SUBDIR= ccd cd9660 coda fdesc if_disc if_ppp if_sl if_tun ipfw kernfs \
mfs msdos nfs nullfs portal procfs umapfs union vinum ntfs
mfs msdos nfs nullfs portal procfs umapfs union vinum ntfs vn
# XXX some of these can move to the general case when de-i386'ed
.if ${MACHINE_ARCH} == "i386"

View File

@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: vm_page.h,v 1.55 1999/02/08 00:37:35 dillon Exp $
* $Id: vm_page.h,v 1.56 1999/02/15 06:52:14 dillon Exp $
*/
/*
@ -71,7 +71,9 @@
#ifndef _VM_PAGE_
#define _VM_PAGE_
#if !defined(KLD_MODULE)
#include "opt_vmpage.h"
#endif
#include <vm/pmap.h>
#include <machine/atomic.h>
@ -136,6 +138,8 @@ struct vm_page {
#define SWAPBLK_MASK ((daddr_t)((u_daddr_t)-1 >> 1)) /* mask */
#define SWAPBLK_NONE ((daddr_t)((u_daddr_t)SWAPBLK_MASK + 1))/* flag */
#if !defined(KLD_MODULE)
/*
* Page coloring parameters
*/
@ -198,6 +202,8 @@ extern struct vpgqueues {
int *lcnt;
} vm_page_queues[PQ_COUNT];
#endif
/*
* These are the flags defined for vm_page.
*
@ -252,11 +258,15 @@ extern struct vpgqueues {
*
*/
#if !defined(KLD_MODULE)
extern struct pglist vm_page_queue_free[PQ_L2_SIZE];/* memory free queue */
extern struct pglist vm_page_queue_active; /* active memory queue */
extern struct pglist vm_page_queue_inactive; /* inactive memory queue */
extern struct pglist vm_page_queue_cache[PQ_L2_SIZE];/* cache memory queue */
#endif
extern int vm_page_zero_count;
extern vm_page_t vm_page_array; /* First resident page in table */
@ -557,6 +567,8 @@ vm_page_dirty(vm_page_t m)
m->dirty = VM_PAGE_BITS_ALL;
}
#if !defined(KLD_MODULE)
static __inline vm_page_t
vm_page_list_find(int basequeue, int index, boolean_t prefer_zero)
{
@ -580,5 +592,7 @@ vm_page_list_find(int basequeue, int index, boolean_t prefer_zero)
return(m);
}
#endif
#endif /* KERNEL */
#endif /* !_VM_PAGE_ */