Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Change the vm_map's "entries_pageable" member to a r/o f...
details: https://anonhg.NetBSD.org/src/rev/47e4725ee7d2
branches: trunk
changeset: 473247:47e4725ee7d2
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 26 19:16:28 1999 +0000
description:
Change the vm_map's "entries_pageable" member to a r/o flags member, which
has PAGEABLE and INTRSAFE flags. PAGEABLE now really means "pageable",
not "allocate vm_map_entry's from non-static pool", so update all map
creations to reflect that. INTRSAFE maps are maps that are used in
interrupt context (e.g. kmem_map, mb_map), and thus use the static
map entry pool (XXX as does kernel_map, for now). This will eventually
change now these maps are locked, as well.
diffstat:
sys/arch/alpha/alpha/machdep.c | 8 ++++----
sys/arch/amiga/amiga/machdep.c | 9 +++++----
sys/arch/amiga/amiga/pmap.c | 8 ++++----
sys/arch/arm32/arm32/machdep.c | 9 +++++----
sys/arch/atari/atari/machdep.c | 9 +++++----
sys/arch/atari/atari/pmap.c | 4 ++--
sys/arch/bebox/bebox/machdep.c | 6 +++---
sys/arch/hp300/hp300/machdep.c | 9 +++++----
sys/arch/hp300/hp300/pmap.c | 8 ++++----
sys/arch/i386/i386/machdep.c | 8 ++++----
sys/arch/mac68k/mac68k/machdep.c | 8 ++++----
sys/arch/mac68k/mac68k/pmap.c | 6 +++---
sys/arch/macppc/macppc/machdep.c | 6 +++---
sys/arch/mvme68k/mvme68k/machdep.c | 9 +++++----
sys/arch/mvme68k/mvme68k/pmap.c | 6 +++---
sys/arch/newsmips/newsmips/machdep.c | 8 ++++----
sys/arch/next68k/next68k/machdep.c | 9 +++++----
sys/arch/next68k/next68k/pmap.c | 6 +++---
sys/arch/ofppc/ofppc/machdep.c | 6 +++---
sys/arch/pc532/pc532/machdep.c | 8 ++++----
sys/arch/pmax/pmax/machdep.c | 8 ++++----
sys/arch/sparc/sparc/machdep.c | 6 +++---
sys/arch/sparc64/sparc64/machdep.c | 8 ++++----
sys/arch/sun3/sun3/dvma.c | 4 ++--
sys/arch/sun3/sun3/machdep.c | 7 ++++---
sys/arch/sun3/sun3x/machdep.c | 7 ++++---
sys/arch/vax/vax/machdep.c | 6 +++---
sys/arch/vax/vax/pmap.c | 4 ++--
sys/arch/x68k/x68k/machdep.c | 9 +++++----
sys/arch/x68k/x68k/pmap.c | 8 ++++----
sys/kern/kern_malloc.c | 4 ++--
sys/uvm/uvm_extern.h | 4 ++--
sys/uvm/uvm_km.c | 12 ++++++------
sys/uvm/uvm_map.c | 25 +++++++++++++++----------
sys/uvm/uvm_map.h | 6 +++---
sys/uvm/uvm_map_i.h | 14 +++++++-------
sys/uvm/uvm_pager.c | 4 ++--
sys/vm/vm_map.h | 8 ++++++--
38 files changed, 156 insertions(+), 138 deletions(-)
diffs (truncated from 1153 to 300 lines):
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c Wed May 26 15:51:09 1999 +0000
+++ b/sys/arch/alpha/alpha/machdep.c Wed May 26 19:16:28 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.174 1999/05/21 00:09:09 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.175 1999/05/26 19:16:28 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.174 1999/05/21 00:09:09 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.175 1999/05/26 19:16:28 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1000,13 +1000,13 @@
* limits the number of processes exec'ing at any time.
*/
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- 16 * NCARGS, TRUE, FALSE, NULL);
+ 16 * NCARGS, VM_MAP_PAGEABLE, FALSE, NULL);
/*
* Allocate a submap for physio
*/
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_PHYS_SIZE, TRUE, FALSE, NULL);
+ VM_PHYS_SIZE, 0, FALSE, NULL);
/*
* No need to allocate an mbuf cluster submap. Mbuf clusters
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c Wed May 26 15:51:09 1999 +0000
+++ b/sys/arch/amiga/amiga/machdep.c Wed May 26 19:16:28 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.136 1999/05/20 08:21:43 lukem Exp $ */
+/* $NetBSD: machdep.c,v 1.137 1999/05/26 19:16:29 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -331,19 +331,20 @@
* limits the number of processes exec'ing at any time.
*/
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- 16*NCARGS, TRUE, FALSE, NULL);
+ 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL);
/*
* Allocate a submap for physio
*/
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_PHYS_SIZE, TRUE, FALSE, NULL);
+ VM_PHYS_SIZE, 0, FALSE, NULL);
/*
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- nmbclusters * mclbytes, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, VM_MAP_INTRSAFE,
+ FALSE, NULL);
/*
* Initialize callouts
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/amiga/amiga/pmap.c
--- a/sys/arch/amiga/amiga/pmap.c Wed May 26 15:51:09 1999 +0000
+++ b/sys/arch/amiga/amiga/pmap.c Wed May 26 19:16:28 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.64 1999/04/22 04:24:52 chs Exp $ */
+/* $NetBSD: pmap.c,v 1.65 1999/05/26 19:16:29 thorpej Exp $ */
/*
* Copyright (c) 1991 Regents of the University of California.
@@ -606,8 +606,8 @@
* Allocate the segment table map and the page table map.
*/
s = maxproc * AMIGA_STSIZE;
- st_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, TRUE,
- FALSE, &st_map_store);
+ st_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, 0, FALSE,
+ &st_map_store);
addr = amiga_uptbase;
if ((AMIGA_UPTMAXSIZE / AMIGA_UPTSIZE) < maxproc) {
@@ -621,7 +621,7 @@
maxproc = (AMIGA_UPTMAXSIZE / AMIGA_UPTSIZE);
} else
s = (maxproc * AMIGA_UPTSIZE);
- pt_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, TRUE,
+ pt_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, VM_MAP_PAGEABLE,
TRUE, &pt_map_store);
#if defined(M68040) || defined(M68060)
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/arm32/arm32/machdep.c
--- a/sys/arch/arm32/arm32/machdep.c Wed May 26 15:51:09 1999 +0000
+++ b/sys/arch/arm32/arm32/machdep.c Wed May 26 19:16:28 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.68 1999/05/20 08:21:43 lukem Exp $ */
+/* $NetBSD: machdep.c,v 1.69 1999/05/26 19:16:29 thorpej Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -439,19 +439,20 @@
* limits the number of processes exec'ing at any time.
*/
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- 16*NCARGS, TRUE, FALSE, NULL);
+ 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL);
/*
* Allocate a submap for physio
*/
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_PHYS_SIZE, TRUE, FALSE, NULL);
+ VM_PHYS_SIZE, 0, FALSE, NULL);
/*
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- nmbclusters * mclbytes, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, VM_MAP_INTRSAFE,
+ FALSE, NULL);
/*
* Initialise callouts
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/atari/atari/machdep.c
--- a/sys/arch/atari/atari/machdep.c Wed May 26 15:51:09 1999 +0000
+++ b/sys/arch/atari/atari/machdep.c Wed May 26 19:16:28 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.83 1999/05/26 14:29:34 leo Exp $ */
+/* $NetBSD: machdep.c,v 1.84 1999/05/26 19:16:30 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -252,19 +252,20 @@
* limits the number of processes exec'ing at any time.
*/
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- 16*NCARGS, TRUE, FALSE, NULL);
+ 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL);
/*
* Allocate a submap for physio
*/
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_PHYS_SIZE, TRUE, FALSE, NULL);
+ VM_PHYS_SIZE, 0, FALSE, NULL);
/*
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- nmbclusters * mclbytes, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, VM_MAP_INTRSAFE,
+ FALSE, NULL);
/*
* Tell the VM system that page 0 isn't mapped.
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/atari/atari/pmap.c
--- a/sys/arch/atari/atari/pmap.c Wed May 26 15:51:09 1999 +0000
+++ b/sys/arch/atari/atari/pmap.c Wed May 26 19:16:28 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.44 1999/04/22 04:24:52 chs Exp $ */
+/* $NetBSD: pmap.c,v 1.45 1999/05/26 19:16:30 thorpej Exp $ */
/*
* Copyright (c) 1991 Regents of the University of California.
@@ -579,7 +579,7 @@
}
else s = maxproc * ATARI_UPTSIZE;
- pt_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, TRUE,
+ pt_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, VM_MAP_PAGEABLE,
TRUE, &pt_map_store);
#ifdef DEBUG
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/bebox/bebox/machdep.c
--- a/sys/arch/bebox/bebox/machdep.c Wed May 26 15:51:09 1999 +0000
+++ b/sys/arch/bebox/bebox/machdep.c Wed May 26 19:16:28 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.37 1999/05/20 08:21:43 lukem Exp $ */
+/* $NetBSD: machdep.c,v 1.38 1999/05/26 19:16:30 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -530,13 +530,13 @@
* limits the number of processes exec'ing at any time.
*/
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- 16*NCARGS, TRUE, FALSE, NULL);
+ 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL);
/*
* Allocate a submap for physio
*/
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_PHYS_SIZE, TRUE, FALSE, NULL);
+ VM_PHYS_SIZE, 0, FALSE, NULL);
/*
* No need to allocate an mbuf cluster submap. Mbuf clusters
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/hp300/hp300/machdep.c
--- a/sys/arch/hp300/hp300/machdep.c Wed May 26 15:51:09 1999 +0000
+++ b/sys/arch/hp300/hp300/machdep.c Wed May 26 19:16:28 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.126 1999/05/20 08:21:44 lukem Exp $ */
+/* $NetBSD: machdep.c,v 1.127 1999/05/26 19:16:30 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -340,19 +340,20 @@
* limits the number of processes exec'ing at any time.
*/
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- 16*NCARGS, TRUE, FALSE, NULL);
+ 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL);
/*
* Allocate a submap for physio
*/
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_PHYS_SIZE, TRUE, FALSE, NULL);
+ VM_PHYS_SIZE, 0, FALSE, NULL);
/*
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- nmbclusters * mclbytes, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, VM_MAP_INTRSAFE,
+ FALSE, NULL);
/*
* Initialize callouts
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/hp300/hp300/pmap.c
--- a/sys/arch/hp300/hp300/pmap.c Wed May 26 15:51:09 1999 +0000
+++ b/sys/arch/hp300/hp300/pmap.c Wed May 26 19:16:28 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.73 1999/04/22 04:24:53 chs Exp $ */
+/* $NetBSD: pmap.c,v 1.74 1999/05/26 19:16:30 thorpej Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -481,8 +481,8 @@
* Allocate the segment table map and the page table map.
*/
s = maxproc * HP_STSIZE;
- st_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, TRUE,
- FALSE, &st_map_store);
+ st_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, 0, FALSE,
+ &st_map_store);
addr = HP_PTBASE;
if ((HP_PTMAXSIZE / HP_MAX_PTSIZE) < maxproc) {
@@ -496,7 +496,7 @@
maxproc = (HP_PTMAXSIZE / HP_MAX_PTSIZE);
} else
s = (maxproc * HP_MAX_PTSIZE);
- pt_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, TRUE,
+ pt_map = uvm_km_suballoc(kernel_map, &addr, &addr2, s, VM_MAP_PAGEABLE,
TRUE, &pt_map_store);
#if defined(M68040)
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c Wed May 26 15:51:09 1999 +0000
+++ b/sys/arch/i386/i386/machdep.c Wed May 26 19:16:28 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.357 1999/05/25 23:30:27 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.358 1999/05/26 19:16:31 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -441,19 +441,19 @@
* limits the number of processes exec'ing at any time.
*/
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- 16*NCARGS, TRUE, FALSE, NULL);
+ 16*NCARGS, VM_MAP_PAGEABLE, FALSE, NULL);
/*
* Allocate a submap for physio
*/
phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_PHYS_SIZE, TRUE, FALSE, NULL);
+ VM_PHYS_SIZE, 0, FALSE, NULL);
/*
* Finally, allocate mbuf cluster submap.
*/
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- nmbclusters * mclbytes, FALSE, FALSE, NULL);
+ nmbclusters * mclbytes, VM_MAP_INTRSAFE, FALSE, NULL);
/*
* Initialize callouts
diff -r 6fa1bc91d150 -r 47e4725ee7d2 sys/arch/mac68k/mac68k/machdep.c
Home |
Main Index |
Thread Index |
Old Index