summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-09-11 20:10:01 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-09-11 20:10:01 +0000
commit9ebb0e3095bfc9a4093b4d29698a56e2a6b8cbeb (patch)
tree37691a63859e39b99f387a501349ebbb5760e3da
parent650cf27b4440ede3599ffc101d32dcc91e46bb9a (diff)
Fix uvm_km_suballoc() usage flags. ok art@ millert@
-rw-r--r--sys/arch/hp300/hp300/machdep.c6
-rw-r--r--sys/arch/mac68k/mac68k/machdep.c8
-rw-r--r--sys/arch/macppc/macppc/machdep.c8
-rw-r--r--sys/arch/mvmeppc/mvmeppc/machdep.c8
4 files changed, 15 insertions, 15 deletions
diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c
index 435ee80dfc7..b86accdc438 100644
--- a/sys/arch/hp300/hp300/machdep.c
+++ b/sys/arch/hp300/hp300/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.62 2001/08/26 00:15:37 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.63 2001/09/11 20:09:56 miod Exp $ */
/* $NetBSD: machdep.c,v 1.121 1999/03/26 23:41:29 mycroft Exp $ */
/*
@@ -332,13 +332,13 @@ cpu_startup()
* 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);
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
VM_MBUF_SIZE, VM_MAP_INTRSAFE, FALSE, NULL);
diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c
index 226dd362788..4eaf1799d5c 100644
--- a/sys/arch/mac68k/mac68k/machdep.c
+++ b/sys/arch/mac68k/mac68k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.80 2001/08/25 15:43:28 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.81 2001/09/11 20:10:00 miod Exp $ */
/* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */
/*
@@ -497,16 +497,16 @@ again:
* 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);
mb_map = uvm_km_suballoc(kernel_map, (vm_offset_t *)&mbutl, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ VM_MBUF_SIZE, VM_MAP_INTRSAFE, FALSE, NULL);
printf("avail mem = %ld\n", ptoa(uvmexp.free));
printf("using %d buffers containing %d bytes of memory\n",
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c
index 1680fb47b59..8ca46a239c3 100644
--- a/sys/arch/macppc/macppc/machdep.c
+++ b/sys/arch/macppc/macppc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.1 2001/09/01 15:44:20 drahn Exp $ */
+/* $OpenBSD: machdep.c,v 1.2 2001/09/11 20:10:00 miod Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -569,17 +569,17 @@ cpu_startup()
* limits the number of processes exec'ing at any time.
*/
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS,
- TRUE, FALSE, NULL);
+ 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);
ppc_malloc_ok = 1;
mb_map = uvm_km_suballoc(kernel_map, (vm_offset_t *)&mbutl, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ VM_MBUF_SIZE, VM_MAP_INTRSAFE, FALSE, NULL);
printf("avail mem = %d\n", ptoa(uvmexp.free));
printf("using %d buffers containing %d bytes of memory\n", nbuf,
diff --git a/sys/arch/mvmeppc/mvmeppc/machdep.c b/sys/arch/mvmeppc/mvmeppc/machdep.c
index 81011c7cf13..1a862b0b844 100644
--- a/sys/arch/mvmeppc/mvmeppc/machdep.c
+++ b/sys/arch/mvmeppc/mvmeppc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.7 2001/08/27 21:15:17 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.8 2001/09/11 20:10:00 miod Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -562,18 +562,18 @@ cpu_startup()
* limits the number of processes exec'ing at any time.
*/
exec_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, 16 * NCARGS,
- TRUE, FALSE, NULL);
+ 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);
ppc_malloc_ok = 1;
mb_map = uvm_km_suballoc(kernel_map, (vm_offset_t *)&mbutl, &maxaddr,
- VM_MBUF_SIZE, FALSE, FALSE, NULL);
+ VM_MBUF_SIZE, VM_MAP_INTRSAFE, FALSE, NULL);
printf("avail mem = %d\n", ptoa(uvmexp.free));
printf("using %d buffers containing %d bytes of memory\n", nbuf,