- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.
This commit is contained in:
parent
301a4b3f87
commit
d90485202c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_memrw.c,v 1.2 1998/02/06 07:21:52 mrg Exp $ */
|
||||
/* $NetBSD: db_memrw.c,v 1.3 1998/02/10 14:11:20 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -33,6 +33,8 @@
|
|||
* by DDB and KGDB.
|
||||
*/
|
||||
|
||||
#include "opt_pmap_new.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gdt.c,v 1.12 1998/02/06 07:21:52 mrg Exp $ */
|
||||
/* $NetBSD: gdt.c,v 1.13 1998/02/10 14:11:02 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -36,6 +36,8 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: locore.s,v 1.186 1998/02/06 07:21:54 mrg Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.187 1998/02/10 14:11:17 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995, 1997
|
||||
|
@ -44,6 +44,8 @@
|
|||
#include "opt_vm86.h"
|
||||
#include "opt_user_ldt.h"
|
||||
#include "opt_dummy_nops.h"
|
||||
#include "opt_uvm.h"
|
||||
#include "opt_pmap_new.h"
|
||||
|
||||
#include "npx.h"
|
||||
#include "assym.h"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.287 1998/02/08 06:15:53 thorpej Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.288 1998/02/10 14:11:05 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -81,6 +81,8 @@
|
|||
#include "opt_cputype.h"
|
||||
#include "opt_vm86.h"
|
||||
#include "opt_user_ldt.h"
|
||||
#include "opt_uvm.h"
|
||||
#include "opt_pmap_new.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mem.c,v 1.33 1998/02/06 07:21:57 mrg Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.34 1998/02/10 14:11:07 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -40,6 +40,9 @@
|
|||
* @(#)mem.c 8.3 (Berkeley) 1/12/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
#include "opt_pmap_new.h"
|
||||
|
||||
/*
|
||||
* Memory special file
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.55 1998/02/06 07:21:58 mrg Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.56 1998/02/10 14:11:11 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993, 1994, 1995, 1997 Charles M. Hannum. All rights reserved.
|
||||
|
@ -79,6 +79,7 @@
|
|||
*/
|
||||
|
||||
#include "opt_cputype.h"
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sys_machdep.c,v 1.39 1998/02/06 07:21:59 mrg Exp $ */
|
||||
/* $NetBSD: sys_machdep.c,v 1.40 1998/02/10 14:11:12 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1997
|
||||
|
@ -42,6 +42,7 @@
|
|||
|
||||
#include "opt_vm86.h"
|
||||
#include "opt_user_ldt.h"
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: trap.c,v 1.110 1998/02/09 02:30:42 scottb Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.111 1998/02/10 14:11:14 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
||||
|
@ -45,6 +45,8 @@
|
|||
|
||||
#include "opt_math_emulate.h"
|
||||
#include "opt_vm86.h"
|
||||
#include "opt_uvm.h"
|
||||
#include "opt_pmap_new.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.67 1998/02/06 07:22:01 mrg Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.68 1998/02/10 14:11:15 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
||||
|
@ -46,6 +46,8 @@
|
|||
*/
|
||||
|
||||
#include "opt_user_ldt.h"
|
||||
#include "opt_uvm.h"
|
||||
#include "opt_pmap_new.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pcb.h,v 1.22 1998/02/06 07:22:02 mrg Exp $ */
|
||||
/* $NetBSD: pcb.h,v 1.23 1998/02/10 14:11:57 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
||||
|
@ -46,6 +46,10 @@
|
|||
#ifndef _I386_PCB_H_
|
||||
#define _I386_PCB_H_
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_pmap_new.h"
|
||||
#endif
|
||||
|
||||
#include <sys/signal.h>
|
||||
|
||||
#include <machine/segments.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.h,v 1.33 1998/02/06 07:22:02 mrg Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.34 1998/02/10 14:11:58 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
|
||||
|
@ -50,6 +50,10 @@
|
|||
* from hp300: @(#)pmap.h 7.2 (Berkeley) 12/16/90
|
||||
*/
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_pmap_new.h"
|
||||
#endif
|
||||
|
||||
#ifdef PMAP_NEW /* redirect */
|
||||
#include <machine/pmap.new.h> /* defines _I386_PMAP_H_ */
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vmparam.h,v 1.25 1998/02/06 07:22:03 mrg Exp $ */
|
||||
/* $NetBSD: vmparam.h,v 1.26 1998/02/10 14:12:00 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -41,6 +41,9 @@
|
|||
#ifndef _VMPARAM_H_
|
||||
#define _VMPARAM_H_
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_pmap_new.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Machine dependent constants for 386.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fd.c,v 1.117 1998/02/06 07:22:05 mrg Exp $ */
|
||||
/* $NetBSD: fd.c,v 1.118 1998/02/10 14:11:24 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995, 1996
|
||||
|
@ -58,6 +58,7 @@
|
|||
*/
|
||||
|
||||
#include "rnd.h"
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: npx.c,v 1.64 1998/02/06 07:22:06 mrg Exp $ */
|
||||
/* $NetBSD: npx.c,v 1.65 1998/02/10 14:11:26 mrg Exp $ */
|
||||
|
||||
#if 0
|
||||
#define IPRINTF(x) printf x
|
||||
|
@ -43,6 +43,8 @@
|
|||
* @(#)npx.c 7.2 (Berkeley) 5/12/91
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/conf.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vector.s,v 1.39 1998/02/06 07:22:07 mrg Exp $ */
|
||||
/* $NetBSD: vector.s,v 1.40 1998/02/10 14:11:28 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993, 1994, 1995, 1997 Charles M. Hannum. All rights reserved.
|
||||
|
@ -29,6 +29,8 @@
|
|||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <i386/isa/icu.h>
|
||||
#include <dev/isa/isareg.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bt_subr.c,v 1.6 1998/02/05 07:57:50 mrg Exp $ */
|
||||
/* $NetBSD: bt_subr.c,v 1.7 1998/02/10 14:11:30 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993
|
||||
|
@ -44,6 +44,8 @@
|
|||
* @(#)bt_subr.c 8.2 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/buf.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cgfourteen.c,v 1.9 1998/02/05 07:57:51 mrg Exp $ */
|
||||
/* $NetBSD: cgfourteen.c,v 1.10 1998/02/10 14:11:32 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -61,6 +61,8 @@
|
|||
* XXX should defer colormap updates to vertical retrace interrupts
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
/*
|
||||
* The following is for debugging only; it opens up a security hole
|
||||
* enabled by allowing any user to map the control registers for the
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cgsix.c,v 1.36 1998/02/05 07:57:52 mrg Exp $ */
|
||||
/* $NetBSD: cgsix.c,v 1.37 1998/02/10 14:11:33 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993
|
||||
|
@ -52,6 +52,8 @@
|
|||
* XXX should defer colormap updates to vertical retrace interrupts
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/buf.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fd.c,v 1.56 1998/02/05 07:57:53 mrg Exp $ */
|
||||
/* $NetBSD: fd.c,v 1.57 1998/02/10 14:11:35 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995 Charles Hannum.
|
||||
|
@ -40,6 +40,8 @@
|
|||
* @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: amd7930intr.s,v 1.11 1998/02/05 07:57:54 mrg Exp $ */
|
||||
/* $NetBSD: amd7930intr.s,v 1.12 1998/02/10 14:11:49 mrg Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Rolf Grossmann.
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -44,6 +44,8 @@
|
|||
* @(#)bsd_audiointr.s 8.1 (Berkeley) 6/11/93
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#ifndef AUDIO_C_HANDLER
|
||||
#include "assym.h"
|
||||
#include <machine/param.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bsd_fdintr.s,v 1.12 1998/02/05 07:57:55 mrg Exp $ */
|
||||
/* $NetBSD: bsd_fdintr.s,v 1.13 1998/02/10 14:11:50 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Paul Kranenburg
|
||||
|
@ -31,6 +31,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#ifndef FDC_C_HANDLER
|
||||
#include "assym.h"
|
||||
#include <machine/param.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: locore.s,v 1.79 1998/02/05 07:57:57 mrg Exp $ */
|
||||
/* $NetBSD: locore.s,v 1.80 1998/02/10 14:11:52 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Paul Kranenburg
|
||||
|
@ -50,6 +50,8 @@
|
|||
* @(#)locore.s 8.4 (Berkeley) 12/10/93
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include "assym.h"
|
||||
#include <machine/param.h>
|
||||
#include <sparc/sparc/intreg.h>
|
||||
|
@ -5085,7 +5087,7 @@ Lbcopy_start:
|
|||
inc %o1
|
||||
1:
|
||||
retl
|
||||
nop
|
||||
nop
|
||||
/* NOTREACHED */
|
||||
|
||||
/*
|
||||
|
@ -5116,7 +5118,7 @@ Lbcopy_fancy:
|
|||
bnz 0b ! } while (--len != 0);
|
||||
stb %o4, [%o1 - 1]
|
||||
retl
|
||||
nop
|
||||
nop
|
||||
/* NOTREACHED */
|
||||
|
||||
! lowest bit matches, so we can copy by words, if nothing else
|
||||
|
@ -5214,7 +5216,7 @@ Lbcopy_mopw:
|
|||
sth %o4, [%o1]
|
||||
ldsb [%o0 + 2], %o4 ! dst[2] = src[2];
|
||||
retl
|
||||
stb %o4, [%o1 + 2]
|
||||
stb %o4, [%o1 + 2]
|
||||
/* NOTREACHED */
|
||||
|
||||
! mop up trailing byte (if present).
|
||||
|
@ -5224,11 +5226,11 @@ Lbcopy_mopb:
|
|||
|
||||
Lbcopy_done:
|
||||
retl
|
||||
nop
|
||||
nop
|
||||
|
||||
1:
|
||||
retl
|
||||
stb %o4,[%o1]
|
||||
stb %o4,[%o1]
|
||||
/*
|
||||
* ovbcopy(src, dst, len): like bcopy, but regions may overlap.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.102 1998/02/08 06:15:56 thorpej Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.103 1998/02/10 14:11:38 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -81,6 +81,8 @@
|
|||
* @(#)machdep.c 8.6 (Berkeley) 1/14/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/signal.h>
|
||||
#include <sys/signalvar.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mem.c,v 1.15 1998/02/05 07:57:59 mrg Exp $ */
|
||||
/* $NetBSD: mem.c,v 1.16 1998/02/10 14:11:41 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -44,6 +44,8 @@
|
|||
* Memory special file
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pmap.c,v 1.111 1998/02/07 02:36:58 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.112 1998/02/10 14:11:43 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -56,6 +56,8 @@
|
|||
* Does not function on multiprocessors (yet).
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/device.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: trap.c,v 1.63 1998/02/07 17:26:34 chs Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.64 1998/02/10 14:11:46 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -48,6 +48,8 @@
|
|||
* @(#)trap.c 8.4 (Berkeley) 9/23/93
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.33 1998/02/05 07:58:03 mrg Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.34 1998/02/10 14:11:48 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -48,6 +48,8 @@
|
|||
* @(#)vm_machdep.c 8.2 (Berkeley) 9/23/93
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_info_43.c,v 1.7 1998/02/05 07:59:28 mrg Exp $ */
|
||||
/* $NetBSD: kern_info_43.c,v 1.8 1998/02/10 14:10:25 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1991, 1993
|
||||
|
@ -35,6 +35,8 @@
|
|||
* @(#)subr_xxx.c 8.1 (Berkeley) 6/10/93
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/filedesc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_misc.c,v 1.56 1998/02/05 07:59:30 mrg Exp $ */
|
||||
/* $NetBSD: svr4_misc.c,v 1.57 1998/02/10 14:10:28 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christos Zoulas
|
||||
|
@ -33,6 +33,9 @@
|
|||
* SVR4 system calls that are implemented differently in BSD are
|
||||
* handled here.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/namei.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: files,v 1.170 1998/02/05 15:04:14 mrg Exp $
|
||||
# $NetBSD: files,v 1.171 1998/02/10 14:11:55 mrg Exp $
|
||||
|
||||
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
|
||||
|
||||
|
@ -26,6 +26,12 @@ defopt INSECURE
|
|||
|
||||
defopt opt_execfmt.h EXEC_AOUT EXEC_ECOFF EXEC_ELF32 EXEC_ELF64 EXEC_SCRIPT
|
||||
|
||||
# these are not together so that turning on UVMHIST only affects files that
|
||||
# use it, not most of the kernel
|
||||
defopt opt_uvm.h UVM
|
||||
defopt opt_uvmhist.h UVMHIST
|
||||
defopt opt_pmap_new.h PMAP_NEW
|
||||
|
||||
# generic attributes
|
||||
define disk
|
||||
define tape
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_command.c,v 1.24 1998/02/05 07:59:35 mrg Exp $ */
|
||||
/* $NetBSD: db_command.c,v 1.25 1998/02/10 14:09:16 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Mach Operating System
|
||||
|
@ -26,6 +26,8 @@
|
|||
* rights to redistribute these changes.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
/*
|
||||
* Command dispatcher.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pdqvar.h,v 1.14 1998/02/05 07:59:41 mrg Exp $ */
|
||||
/* $NetBSD: pdqvar.h,v 1.15 1998/02/10 14:09:14 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1996 Matt Thomas <matt@3am-software.com>
|
||||
|
@ -37,6 +37,10 @@
|
|||
#ifndef _PDQ_OS_H
|
||||
#define _PDQ_OS_H
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_uvm.h"
|
||||
#endif
|
||||
|
||||
#define PDQ_OS_TX_TIMEOUT 5 /* seconds */
|
||||
|
||||
typedef struct _pdq_t pdq_t;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: md.c,v 1.15 1998/02/05 07:59:37 mrg Exp $ */
|
||||
/* $NetBSD: md.c,v 1.16 1998/02/10 14:09:18 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Gordon W. Ross, Leo Weppelman.
|
||||
|
@ -45,6 +45,8 @@
|
|||
* to the authors of the MFS implementation.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/malloc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: exec_subr.c,v 1.11 1998/02/05 07:59:45 mrg Exp $ */
|
||||
/* $NetBSD: exec_subr.c,v 1.12 1998/02/10 14:09:20 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
|
||||
|
@ -30,6 +30,8 @@
|
|||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: init_main.c,v 1.114 1998/02/05 07:59:46 mrg Exp $ */
|
||||
/* $NetBSD: init_main.c,v 1.115 1998/02/10 14:09:22 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -41,6 +41,8 @@
|
|||
* @(#)init_main.c 8.9 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include "rnd.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_descrip.c,v 1.49 1998/02/05 07:59:47 mrg Exp $ */
|
||||
/* $NetBSD: kern_descrip.c,v 1.50 1998/02/10 14:09:25 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991, 1993
|
||||
|
@ -40,6 +40,8 @@
|
|||
* @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/filedesc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_exec.c,v 1.88 1998/02/05 07:59:48 mrg Exp $ */
|
||||
/* $NetBSD: kern_exec.c,v 1.89 1998/02/10 14:09:27 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
|
||||
|
@ -32,6 +32,8 @@
|
|||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/filedesc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_exit.c,v 1.47 1998/02/05 07:59:49 mrg Exp $ */
|
||||
/* $NetBSD: kern_exit.c,v 1.48 1998/02/10 14:09:28 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991, 1993
|
||||
|
@ -40,6 +40,8 @@
|
|||
* @(#)kern_exit.c 8.7 (Berkeley) 2/12/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/map.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_fork.c,v 1.37 1998/02/05 07:59:50 mrg Exp $ */
|
||||
/* $NetBSD: kern_fork.c,v 1.38 1998/02/10 14:09:30 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991, 1993
|
||||
|
@ -40,6 +40,8 @@
|
|||
* @(#)kern_fork.c 8.6 (Berkeley) 4/8/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/map.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_lkm.c,v 1.41 1998/02/05 07:59:50 mrg Exp $ */
|
||||
/* $NetBSD: kern_lkm.c,v 1.42 1998/02/10 14:09:32 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christopher G. Demetriou
|
||||
|
@ -40,6 +40,8 @@
|
|||
* with, but "not right now." -- cgd
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_malloc.c,v 1.30 1998/02/08 06:15:57 thorpej Exp $ */
|
||||
/* $NetBSD: kern_malloc.c,v 1.31 1998/02/10 14:09:34 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1996 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -36,6 +36,8 @@
|
|||
* @(#)kern_malloc.c 8.3 (Berkeley) 1/4/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/map.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_physio.c,v 1.29 1998/02/05 07:59:52 mrg Exp $ */
|
||||
/* $NetBSD: kern_physio.c,v 1.30 1998/02/10 14:09:35 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 Christopher G. Demetriou
|
||||
|
@ -41,6 +41,8 @@
|
|||
* @(#)kern_physio.c 8.1 (Berkeley) 6/10/93
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/buf.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_resource.c,v 1.43 1998/02/05 07:59:53 mrg Exp $ */
|
||||
/* $NetBSD: kern_resource.c,v 1.44 1998/02/10 14:09:37 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1991, 1993
|
||||
|
@ -40,6 +40,8 @@
|
|||
* @(#)kern_resource.c 8.5 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_sig.c,v 1.69 1998/02/05 07:59:54 mrg Exp $ */
|
||||
/* $NetBSD: kern_sig.c,v 1.70 1998/02/10 14:09:41 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1991, 1993
|
||||
|
@ -40,6 +40,8 @@
|
|||
* @(#)kern_sig.c 8.7 (Berkeley) 4/18/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#define SIGPROP /* include signal properties table */
|
||||
#include <sys/param.h>
|
||||
#include <sys/signalvar.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_subr.c,v 1.33 1998/02/07 02:44:47 chs Exp $ */
|
||||
/* $NetBSD: kern_subr.c,v 1.34 1998/02/10 14:09:43 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -89,6 +89,8 @@
|
|||
* @(#)kern_subr.c 8.3 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_synch.c,v 1.47 1998/02/05 07:59:55 mrg Exp $ */
|
||||
/* $NetBSD: kern_synch.c,v 1.48 1998/02/10 14:09:45 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1990, 1991, 1993
|
||||
|
@ -40,6 +40,8 @@
|
|||
* @(#)kern_synch.c 8.6 (Berkeley) 1/21/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_sysctl.c,v 1.31 1998/02/05 07:59:56 mrg Exp $ */
|
||||
/* $NetBSD: kern_sysctl.c,v 1.32 1998/02/10 14:09:46 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -43,6 +43,7 @@
|
|||
*/
|
||||
|
||||
#include "opt_insecure.h"
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sys_process.c,v 1.58 1998/02/05 07:59:58 mrg Exp $ */
|
||||
/* $NetBSD: sys_process.c,v 1.59 1998/02/10 14:09:47 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 Christopher G. Demetriou. All rights reserved.
|
||||
|
@ -52,6 +52,8 @@
|
|||
* in this file.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sysv_shm.c,v 1.42 1998/02/05 07:59:59 mrg Exp $ */
|
||||
/* $NetBSD: sysv_shm.c,v 1.43 1998/02/10 14:09:49 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Adam Glass and Charles Hannum. All rights reserved.
|
||||
|
@ -30,6 +30,8 @@
|
|||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uipc_mbuf.c,v 1.23 1998/02/05 07:59:59 mrg Exp $ */
|
||||
/* $NetBSD: uipc_mbuf.c,v 1.24 1998/02/10 14:09:50 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988, 1991, 1993
|
||||
|
@ -35,6 +35,8 @@
|
|||
* @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vfs_subr.c,v 1.77 1998/02/05 08:00:01 mrg Exp $ */
|
||||
/* $NetBSD: vfs_subr.c,v 1.78 1998/02/10 14:09:52 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -81,6 +81,8 @@
|
|||
* External virtual filesystem routines
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vfs_syscalls.c,v 1.110 1998/02/05 08:00:05 mrg Exp $ */
|
||||
/* $NetBSD: vfs_syscalls.c,v 1.111 1998/02/10 14:09:55 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -40,6 +40,8 @@
|
|||
* @(#)vfs_syscalls.c 8.28 (Berkeley) 12/10/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/namei.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vfs_vnops.c,v 1.25 1998/02/05 08:00:07 mrg Exp $ */
|
||||
/* $NetBSD: vfs_vnops.c,v 1.26 1998/02/10 14:09:57 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -40,6 +40,8 @@
|
|||
* @(#)vfs_vnops.c 8.5 (Berkeley) 12/8/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kernfs_vnops.c,v 1.54 1998/02/05 08:00:12 mrg Exp $ */
|
||||
/* $NetBSD: kernfs_vnops.c,v 1.55 1998/02/10 14:10:32 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -42,6 +42,8 @@
|
|||
* Kernel parameter filesystem (/kern)
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: procfs_mem.c,v 1.17 1998/02/05 08:00:14 mrg Exp $ */
|
||||
/* $NetBSD: procfs_mem.c,v 1.18 1998/02/10 14:10:35 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Jan-Simon Pendry
|
||||
|
@ -45,6 +45,8 @@
|
|||
* of sef's pread/pwrite functions
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/time.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: union_subr.c,v 1.24 1998/02/05 08:00:15 mrg Exp $ */
|
||||
/* $NetBSD: union_subr.c,v 1.25 1998/02/10 14:10:38 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Jan-Simon Pendry
|
||||
|
@ -39,6 +39,8 @@
|
|||
* @(#)union_subr.c 8.16 (Berkeley) 12/10/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: msdosfs_denode.c,v 1.27 1998/02/07 02:44:54 chs Exp $ */
|
||||
/* $NetBSD: msdosfs_denode.c,v 1.28 1998/02/10 14:10:00 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
|
||||
|
@ -47,6 +47,8 @@
|
|||
* October 1992
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/mount.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: msdosfs_vnops.c,v 1.67 1998/02/05 08:00:17 mrg Exp $ */
|
||||
/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
|
||||
|
@ -47,6 +47,8 @@
|
|||
* October 1992
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/namei.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nfs_bio.c,v 1.41 1998/02/05 08:00:19 mrg Exp $ */
|
||||
/* $NetBSD: nfs_bio.c,v 1.42 1998/02/10 14:10:08 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -38,6 +38,7 @@
|
|||
* @(#)nfs_bio.c 8.9 (Berkeley) 3/30/95
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nfs_serv.c,v 1.40 1998/02/05 08:00:21 mrg Exp $ */
|
||||
/* $NetBSD: nfs_serv.c,v 1.41 1998/02/10 14:10:12 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -58,6 +58,8 @@
|
|||
* most version 3 rpcs return more than the status for error cases.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nfs_subs.c,v 1.53 1998/02/07 02:45:00 chs Exp $ */
|
||||
/* $NetBSD: nfs_subs.c,v 1.54 1998/02/10 14:10:16 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -38,6 +38,7 @@
|
|||
* @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
/*
|
||||
* These functions support the macros and help fiddle mbuf chains for
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nfs_vnops.c,v 1.87 1998/02/05 08:00:26 mrg Exp $ */
|
||||
/* $NetBSD: nfs_vnops.c,v 1.88 1998/02/10 14:10:19 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -38,6 +38,7 @@
|
|||
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
/*
|
||||
* vnode op calls for Sun NFS version 2 and 3
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: buf.h,v 1.28 1998/02/05 08:00:38 mrg Exp $ */
|
||||
/* $NetBSD: buf.h,v 1.29 1998/02/10 14:08:44 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -42,6 +42,11 @@
|
|||
|
||||
#ifndef _SYS_BUF_H_
|
||||
#define _SYS_BUF_H_
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_uvm.h"
|
||||
#endif
|
||||
|
||||
#include <sys/queue.h>
|
||||
|
||||
#define NOLIST ((struct buf *)0x87654321)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lock.h,v 1.7 1998/02/10 00:25:36 perry Exp $ */
|
||||
/* $NetBSD: lock.h,v 1.8 1998/02/10 14:08:47 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995
|
||||
|
@ -42,6 +42,10 @@
|
|||
#ifndef _SYS_LOCK_H_
|
||||
#define _SYS_LOCK_H_
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_uvm.h"
|
||||
#endif
|
||||
|
||||
#define NCPUS 1 /* XXX */
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: proc.h,v 1.56 1998/02/05 08:00:42 mrg Exp $ */
|
||||
/* $NetBSD: proc.h,v 1.57 1998/02/10 14:08:48 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1986, 1989, 1991, 1993
|
||||
|
@ -43,6 +43,10 @@
|
|||
#ifndef _SYS_PROC_H_
|
||||
#define _SYS_PROC_H_
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_uvm.h"
|
||||
#endif
|
||||
|
||||
#include <machine/proc.h> /* Machine-dependent proc substruct. */
|
||||
#include <sys/queue.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: systm.h,v 1.74 1998/02/07 02:45:02 chs Exp $ */
|
||||
/* $NetBSD: systm.h,v 1.75 1998/02/10 14:08:50 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1988, 1991, 1993
|
||||
|
@ -71,6 +71,10 @@
|
|||
#ifndef _SYS_SYSTM_H_
|
||||
#define _SYS_SYSTM_H_
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_uvm.h"
|
||||
#endif
|
||||
|
||||
struct device;
|
||||
struct proc;
|
||||
struct uio;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vmmeter.h,v 1.12 1998/02/05 08:00:43 mrg Exp $ */
|
||||
/* $NetBSD: vmmeter.h,v 1.13 1998/02/10 14:08:51 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -38,9 +38,15 @@
|
|||
#ifndef _SYS_VMMETER_H_
|
||||
#define _SYS_VMMETER_H_
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_uvm.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* System wide statistics counters.
|
||||
* System wide statistics counters. Look in <uvm/uvm_extern.h> for the
|
||||
* UVM equivalent.
|
||||
*/
|
||||
#if !defined(_KERNEL) || !defined(UVM)
|
||||
struct vmmeter {
|
||||
/*
|
||||
* General system activity.
|
||||
|
@ -93,13 +99,8 @@ struct vmmeter {
|
|||
u_int v_forks_ppwait; /* number of forks that block parent */
|
||||
u_int v_forks_sharevm; /* number of forks that share address space */
|
||||
};
|
||||
#ifdef _KERNEL
|
||||
#if defined(UVM)
|
||||
extern struct vmmeter cnt;
|
||||
#else
|
||||
struct vmmeter cnt;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* systemwide totals computed every five seconds */
|
||||
struct vmtotal
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vnode.h,v 1.46 1998/02/05 08:00:44 mrg Exp $ */
|
||||
/* $NetBSD: vnode.h,v 1.47 1998/02/10 14:08:53 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -38,6 +38,10 @@
|
|||
#ifndef _SYS_VNODE_H_
|
||||
#define _SYS_VNODE_H_
|
||||
|
||||
#if defined(_KERNEL) && !defined(_LKM)
|
||||
#include "opt_uvm.h"
|
||||
#endif
|
||||
|
||||
#include <sys/queue.h>
|
||||
#ifdef UVM /* XXX: clean up includes later */
|
||||
#include <vm/pglist.h> /* XXX */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ext2fs_inode.c,v 1.4 1998/02/05 08:00:29 mrg Exp $ */
|
||||
/* $NetBSD: ext2fs_inode.c,v 1.5 1998/02/10 14:10:43 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Manuel Bouyer.
|
||||
|
@ -37,6 +37,8 @@
|
|||
* Modified for ext2fs by Manuel Bouyer.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/mount.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ext2fs_readwrite.c,v 1.4 1998/02/05 08:00:30 mrg Exp $ */
|
||||
/* $NetBSD: ext2fs_readwrite.c,v 1.5 1998/02/10 14:10:45 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 Manuel Bouyer.
|
||||
|
@ -37,6 +37,8 @@
|
|||
* Modified for ext2fs by Manuel Bouyer.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/resourcevar.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ext2fs_vnops.c,v 1.6 1998/02/05 08:00:31 mrg Exp $ */
|
||||
/* $NetBSD: ext2fs_vnops.c,v 1.7 1998/02/10 14:10:48 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Manuel Bouyer.
|
||||
|
@ -42,6 +42,8 @@
|
|||
* Modified for ext2fs by Manuel Bouyer.
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/resourcevar.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ffs_alloc.c,v 1.16 1998/02/05 08:00:32 mrg Exp $ */
|
||||
/* $NetBSD: ffs_alloc.c,v 1.17 1998/02/10 14:10:51 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -35,6 +35,8 @@
|
|||
* @(#)ffs_alloc.c 8.11 (Berkeley) 10/27/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/buf.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ffs_balloc.c,v 1.6 1998/02/05 08:00:33 mrg Exp $ */
|
||||
/* $NetBSD: ffs_balloc.c,v 1.7 1998/02/10 14:10:53 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -35,6 +35,8 @@
|
|||
* @(#)ffs_balloc.c 8.4 (Berkeley) 9/23/93
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/buf.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ffs_inode.c,v 1.16 1998/02/05 08:00:34 mrg Exp $ */
|
||||
/* $NetBSD: ffs_inode.c,v 1.17 1998/02/10 14:10:55 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -35,6 +35,8 @@
|
|||
* @(#)ffs_inode.c 8.8 (Berkeley) 10/19/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/mount.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ffs_vnops.c,v 1.10 1998/02/05 08:00:34 mrg Exp $ */
|
||||
/* $NetBSD: ffs_vnops.c,v 1.11 1998/02/10 14:10:57 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -35,6 +35,8 @@
|
|||
* @(#)ffs_vnops.c 8.10 (Berkeley) 8/10/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/resourcevar.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ufs_readwrite.c,v 1.14 1998/02/05 08:00:36 mrg Exp $ */
|
||||
/* $NetBSD: ufs_readwrite.c,v 1.15 1998/02/10 14:10:59 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993
|
||||
|
@ -35,6 +35,8 @@
|
|||
* @(#)ufs_readwrite.c 8.8 (Berkeley) 8/4/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#ifdef LFS_READWRITE
|
||||
#define BLKSIZE(a, b, c) blksize(a)
|
||||
#define FS struct lfs
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ufs_vnops.c,v 1.32 1998/02/05 08:00:36 mrg Exp $ */
|
||||
/* $NetBSD: ufs_vnops.c,v 1.33 1998/02/10 14:11:00 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -40,6 +40,8 @@
|
|||
* @(#)ufs_vnops.c 8.14 (Berkeley) 10/26/94
|
||||
*/
|
||||
|
||||
#include "opt_uvm.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/namei.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm.h,v 1.4 1998/02/10 02:34:17 perry Exp $ */
|
||||
/* $NetBSD: uvm.h,v 1.5 1998/02/10 14:12:01 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -42,6 +42,8 @@
|
|||
#ifndef _UVM_UVM_H_
|
||||
#define _UVM_UVM_H_
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
#include <uvm/uvm_extern.h>
|
||||
|
||||
#include <uvm/uvm_stat.h>
|
||||
|
@ -115,6 +117,13 @@ struct uvm {
|
|||
|
||||
extern struct uvm uvm;
|
||||
|
||||
/*
|
||||
* historys
|
||||
*/
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
UVMHIST_DECL(pdhist);
|
||||
|
||||
/*
|
||||
* vm_map_entry etype bits:
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_amap.c,v 1.5 1998/02/08 16:07:57 mrg Exp $ */
|
||||
/* $NetBSD: uvm_amap.c,v 1.6 1998/02/10 14:12:03 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -42,6 +42,8 @@
|
|||
* uvm_amap.c: uvm amap ops
|
||||
*/
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/mount.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_amap.h,v 1.4 1998/02/10 02:34:20 perry Exp $ */
|
||||
/* $NetBSD: uvm_amap.h,v 1.5 1998/02/10 14:12:04 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -45,8 +45,6 @@
|
|||
* uvm_amap.h
|
||||
*/
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
/*
|
||||
* defines for handling of large sparce amaps.
|
||||
*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_amap_i.h,v 1.5 1998/02/10 02:34:23 perry Exp $ */
|
||||
/* $NetBSD: uvm_amap_i.h,v 1.6 1998/02/10 14:12:05 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -41,6 +41,8 @@
|
|||
#ifndef _UVM_UVM_AMAP_I_H_
|
||||
#define _UVM_UVM_AMAP_I_H_
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
/*
|
||||
* uvm_amap_i.h
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
/* $NetBSD: uvm_aobj.c,v 1.5 1998/02/09 14:35:48 mrg Exp $ */
|
||||
/* $NetBSD: uvm_aobj.c,v 1.6 1998/02/10 14:12:06 mrg Exp $ */
|
||||
|
||||
/* copyright here */
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
/*
|
||||
* from: Id: uvm_aobj.c,v 1.1.2.5 1998/02/06 05:14:38 chs Exp
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_device.c,v 1.4 1998/02/07 11:08:17 mrg Exp $ */
|
||||
/* $NetBSD: uvm_device.c,v 1.5 1998/02/10 14:12:07 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -39,6 +39,8 @@
|
|||
* from: Id: uvm_device.c,v 1.1.2.9 1998/02/06 05:11:47 chs Exp
|
||||
*/
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
/*
|
||||
* uvm_device.c: the device pager.
|
||||
*/
|
||||
|
@ -60,8 +62,6 @@
|
|||
#include <uvm/uvm.h>
|
||||
#include <uvm/uvm_device.h>
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
/*
|
||||
* private global data structure
|
||||
*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_fault.c,v 1.5 1998/02/07 17:00:42 mrg Exp $ */
|
||||
/* $NetBSD: uvm_fault.c,v 1.6 1998/02/10 14:12:11 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -38,6 +38,8 @@
|
|||
* from: Id: uvm_fault.c,v 1.1.2.23 1998/02/06 05:29:05 chs Exp
|
||||
*/
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
/*
|
||||
* uvm_fault.c: fault handler
|
||||
*/
|
||||
|
@ -58,8 +60,6 @@
|
|||
|
||||
#include <uvm/uvm.h>
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
/*
|
||||
*
|
||||
* a word on page faults:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_glue.c,v 1.4 1998/02/07 11:08:33 mrg Exp $ */
|
||||
/* $NetBSD: uvm_glue.c,v 1.5 1998/02/10 14:12:12 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -70,11 +70,12 @@
|
|||
* rights to redistribute these changes.
|
||||
*/
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
/*
|
||||
* uvm_glue.c: glue functions
|
||||
*/
|
||||
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/proc.h>
|
||||
|
@ -93,8 +94,6 @@
|
|||
|
||||
#include <machine/cpu.h>
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
/*
|
||||
* local prototypes
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_init.c,v 1.4 1998/02/07 11:08:38 mrg Exp $ */
|
||||
/* $NetBSD: uvm_init.c,v 1.5 1998/02/10 14:12:13 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -71,8 +71,6 @@
|
|||
struct uvm uvm; /* decl */
|
||||
struct uvmexp uvmexp; /* decl */
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
/*
|
||||
* local prototypes
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_km.c,v 1.5 1998/02/08 06:15:59 thorpej Exp $ */
|
||||
/* $NetBSD: uvm_km.c,v 1.6 1998/02/10 14:12:14 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -70,6 +70,9 @@
|
|||
* rights to redistribute these changes.
|
||||
*/
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
#include "opt_pmap_new.h"
|
||||
|
||||
/*
|
||||
* uvm_km.c: handle kernel memory allocation and management
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_km.h,v 1.4 1998/02/10 02:34:41 perry Exp $ */
|
||||
/* $NetBSD: uvm_km.h,v 1.5 1998/02/10 14:12:15 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -45,8 +45,6 @@
|
|||
* uvm_km.h
|
||||
*/
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
/*
|
||||
* prototypes
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_loan.c,v 1.4 1998/02/07 11:08:51 mrg Exp $ */
|
||||
/* $NetBSD: uvm_loan.c,v 1.5 1998/02/10 14:12:17 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -58,8 +58,6 @@
|
|||
|
||||
#include <uvm/uvm.h>
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
/*
|
||||
* "loaned" pages are pages which are (read-only, copy-on-write) loaned
|
||||
* from the VM system to other parts of the kernel. this allows page
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_map.c,v 1.5 1998/02/08 07:52:28 mrg Exp $ */
|
||||
/* $NetBSD: uvm_map.c,v 1.6 1998/02/10 14:12:18 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -70,6 +70,9 @@
|
|||
* rights to redistribute these changes.
|
||||
*/
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
#include "opt_pmap_new.h"
|
||||
|
||||
/*
|
||||
* uvm_map.c: uvm map operations
|
||||
*/
|
||||
|
@ -94,8 +97,6 @@
|
|||
#define UVM_MAP
|
||||
#include <uvm/uvm.h>
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
struct uvm_cnt uvm_map_call, map_backmerge, map_forwmerge;
|
||||
struct uvm_cnt uvm_mlk_call, uvm_mlk_hint;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_map.h,v 1.5 1998/02/10 02:34:46 perry Exp $ */
|
||||
/* $NetBSD: uvm_map.h,v 1.6 1998/02/10 14:12:20 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -77,8 +77,6 @@
|
|||
* uvm_map.h
|
||||
*/
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
/*
|
||||
* macros
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_map_i.h,v 1.4 1998/02/10 02:34:48 perry Exp $ */
|
||||
/* $NetBSD: uvm_map_i.h,v 1.5 1998/02/10 14:12:20 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -73,6 +73,8 @@
|
|||
#ifndef _UVM_UVM_MAP_I_H_
|
||||
#define _UVM_UVM_MAP_I_H_
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
/*
|
||||
* uvm_map_i.h
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_mmap.c,v 1.3 1998/02/07 11:09:14 mrg Exp $ */
|
||||
/* $NetBSD: uvm_mmap.c,v 1.4 1998/02/10 14:12:21 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -242,7 +242,7 @@ register_t *retval;
|
|||
#ifdef DEBUG
|
||||
printf("mmap: pos=%qx, size=%x too big\n", pos, (int)size);
|
||||
#endif
|
||||
return(EINVAL);
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -254,7 +254,7 @@ register_t *retval;
|
|||
size += pageoff; /* add offset */
|
||||
size = (vm_size_t) round_page(size); /* round up */
|
||||
if ((ssize_t) size < 0)
|
||||
return(EINVAL); /* don't allow wrap */
|
||||
return (EINVAL); /* don't allow wrap */
|
||||
|
||||
/*
|
||||
* now check (MAP_FIXED) or get (!MAP_FIXED) the "addr"
|
||||
|
@ -265,12 +265,12 @@ register_t *retval;
|
|||
/* ensure address and file offset are aligned properly */
|
||||
addr -= pageoff;
|
||||
if (addr & PAGE_MASK)
|
||||
return(EINVAL);
|
||||
return (EINVAL);
|
||||
|
||||
if (VM_MAXUSER_ADDRESS > 0 && (addr + size) > VM_MAXUSER_ADDRESS)
|
||||
return(EINVAL);
|
||||
return (EINVAL);
|
||||
if (vm_min_address > 0 && addr < vm_min_address)
|
||||
return(EINVAL);
|
||||
return (EINVAL);
|
||||
if (addr > addr + size)
|
||||
return (EINVAL); /* no wrapping! */
|
||||
|
||||
|
@ -297,7 +297,7 @@ register_t *retval;
|
|||
return(EBADF);
|
||||
|
||||
if (fp->f_type != DTYPE_VNODE)
|
||||
return(EINVAL); /* only mmap vnodes! */
|
||||
return (EINVAL); /* only mmap vnodes! */
|
||||
vp = (struct vnode *)fp->f_data; /* convert to vnode */
|
||||
if (vp->v_type != VREG && vp->v_type != VCHR)
|
||||
return (EINVAL); /* only REG/CHR support mmap */
|
||||
|
@ -331,7 +331,7 @@ register_t *retval;
|
|||
#else
|
||||
|
||||
if ((flags & (MAP_SHARED|MAP_PRIVATE|MAP_COPY)) == 0)
|
||||
return(EINVAL); /* sorry, old timer */
|
||||
return (EINVAL); /* sorry, old timer */
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -381,7 +381,7 @@ register_t *retval;
|
|||
} else /* MAP_ANON case */ {
|
||||
|
||||
if (fd != -1)
|
||||
return(EINVAL);
|
||||
return (EINVAL);
|
||||
|
||||
is_anon: /* label for SunOS style /dev/zero */
|
||||
handle = NULL;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_page.c,v 1.5 1998/02/08 18:27:30 thorpej Exp $ */
|
||||
/* $NetBSD: uvm_page.c,v 1.6 1998/02/10 14:12:23 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -74,6 +74,8 @@
|
|||
* uvm_page.c: page ops.
|
||||
*/
|
||||
|
||||
#include "opt_pmap_new.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/malloc.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_page.h,v 1.4 1998/02/10 02:34:52 perry Exp $ */
|
||||
/* $NetBSD: uvm_page.h,v 1.5 1998/02/10 14:12:24 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -77,8 +77,6 @@
|
|||
* uvm_page.h
|
||||
*/
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
/*
|
||||
* macros
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_pager.c,v 1.4 1998/02/08 06:15:59 thorpej Exp $ */
|
||||
/* $NetBSD: uvm_pager.c,v 1.5 1998/02/10 14:12:25 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -38,6 +38,9 @@
|
|||
* from: Id: uvm_pager.c,v 1.1.2.23 1998/02/02 20:38:06 chuck Exp
|
||||
*/
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
#include "opt_pmap_new.h"
|
||||
|
||||
/*
|
||||
* uvm_pager.c: generic functions used to assist the pagers.
|
||||
*/
|
||||
|
@ -57,8 +60,6 @@
|
|||
#define UVM_PAGER
|
||||
#include <uvm/uvm.h>
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
/*
|
||||
* list of uvm pagers in the system
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_pager.h,v 1.4 1998/02/10 02:34:56 perry Exp $ */
|
||||
/* $NetBSD: uvm_pager.h,v 1.5 1998/02/10 14:12:26 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -45,9 +45,6 @@
|
|||
* uvm_pager.h
|
||||
*/
|
||||
|
||||
UVMHIST_DECL(maphist);
|
||||
|
||||
|
||||
/*
|
||||
* async pager i/o descriptor structure
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_pdaemon.c,v 1.6 1998/02/09 13:08:26 mrg Exp $ */
|
||||
/* $NetBSD: uvm_pdaemon.c,v 1.7 1998/02/10 14:12:27 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -70,6 +70,8 @@
|
|||
* rights to redistribute these changes.
|
||||
*/
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
/*
|
||||
* uvm_pdaemon.c: the page daemon
|
||||
*/
|
||||
|
@ -85,8 +87,6 @@
|
|||
|
||||
#include <uvm/uvm.h>
|
||||
|
||||
UVMHIST_DECL(pdhist);
|
||||
|
||||
/*
|
||||
* local prototypes
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_pdaemon.h,v 1.4 1998/02/10 02:35:00 perry Exp $ */
|
||||
/* $NetBSD: uvm_pdaemon.h,v 1.5 1998/02/10 14:12:28 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -77,8 +77,6 @@
|
|||
* uvm_pdaemon.h: page daemon hooks
|
||||
*/
|
||||
|
||||
UVMHIST_DECL(pdhist);
|
||||
|
||||
/*
|
||||
* prototypes
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_stat.c,v 1.3 1998/02/07 11:09:38 mrg Exp $ */
|
||||
/* $NetBSD: uvm_stat.c,v 1.4 1998/02/10 14:12:29 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE!
|
||||
|
@ -38,6 +38,8 @@
|
|||
* from: Id: uvm_stat.c,v 1.1.2.3 1997/12/19 15:01:00 mrg Exp
|
||||
*/
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
/*
|
||||
* uvm_stat.c
|
||||
*/
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue