summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-11-10 21:23:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-11-10 21:23:10 +0000
commitb4f62b8d6d83c549a2d02fc25ea9774985a6b9ca (patch)
tree580123d9d2345a3298637a1ce2fc0fc82d40ab08
parentc517555770b7ed4645534243ad040834e8addd20 (diff)
Use appropriate VM_MAP constants rather than hardcoded values in
uvm_map_create() and uvm_km_suballoc().
-rw-r--r--sys/arch/sparc/dev/if_ie.c4
-rw-r--r--sys/arch/sparc/sparc/machdep.c5
-rw-r--r--sys/arch/sun3/sun3/dvma.c4
-rw-r--r--sys/dev/ccd.c5
4 files changed, 10 insertions, 8 deletions
diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c
index c510d08b17f..1f3830ec657 100644
--- a/sys/arch/sparc/dev/if_ie.c
+++ b/sys/arch/sparc/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.24 2002/04/30 01:12:29 art Exp $ */
+/* $OpenBSD: if_ie.c,v 1.25 2002/11/10 21:23:06 miod Exp $ */
/* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */
/*-
@@ -536,7 +536,7 @@ ieattach(parent, self, aux)
*/
ie_map = uvm_map_create(pmap_kernel(), (vaddr_t)IEOB_ADBASE,
- (vaddr_t)IEOB_ADBASE + sc->sc_msize, 1);
+ (vaddr_t)IEOB_ADBASE + sc->sc_msize, VM_MAP_INTRSAFE);
if (ie_map == NULL) panic("ie_map");
sc->sc_maddr = (caddr_t) uvm_km_alloc(ie_map, sc->sc_msize);
if (sc->sc_maddr == NULL) panic("ie kmem_alloc");
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index fdc0c9b6ac0..1dfa5bb15cb 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.87 2002/11/07 04:39:14 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.88 2002/11/10 21:23:09 miod Exp $ */
/* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */
/*
@@ -266,7 +266,8 @@ cpu_startup()
*/
dvma_base = CPU_ISSUN4M ? DVMA4M_BASE : DVMA_BASE;
dvma_end = CPU_ISSUN4M ? DVMA4M_END : DVMA_END;
- phys_map = uvm_map_create(pmap_kernel(), dvma_base, dvma_end, 1);
+ phys_map = uvm_map_create(pmap_kernel(), dvma_base, dvma_end,
+ VM_MAP_INTRSAFE);
if (phys_map == NULL)
panic("unable to create DVMA map");
/*
diff --git a/sys/arch/sun3/sun3/dvma.c b/sys/arch/sun3/sun3/dvma.c
index 4d1d5528ccc..b00a831e41f 100644
--- a/sys/arch/sun3/sun3/dvma.c
+++ b/sys/arch/sun3/sun3/dvma.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dvma.c,v 1.15 2002/01/17 01:10:11 miod Exp $ */
+/* $OpenBSD: dvma.c,v 1.16 2002/11/10 21:23:09 miod Exp $ */
/* $NetBSD: dvma.c,v 1.5 1996/11/20 18:57:29 gwr Exp $ */
/*-
@@ -82,7 +82,7 @@ dvma_init()
* remainder will be used as the DVMA page pool.
*/
phys_map = uvm_map_create(pmap_kernel(),
- DVMA_SPACE_START, DVMA_SPACE_END, 1);
+ DVMA_SPACE_START, DVMA_SPACE_END, VM_MAP_INTRSAFE);
if (phys_map == NULL)
panic("unable to create DVMA map");
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c
index a07c38f25ed..b92d96a3ce0 100644
--- a/sys/dev/ccd.c
+++ b/sys/dev/ccd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ccd.c,v 1.49 2002/05/24 13:10:52 art Exp $ */
+/* $OpenBSD: ccd.c,v 1.50 2002/11/10 21:23:09 miod Exp $ */
/* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */
/*-
@@ -1300,7 +1300,8 @@ ccdioctl(dev, cmd, data, flag, p)
*/
if (!ccdmap && !(ccd.ccd_flags & CCDF_OLD))
ccdmap = uvm_km_suballoc(kernel_map, &min, &max,
- CCD_CLUSTERS * MAXBSIZE, FALSE, FALSE, NULL);
+ CCD_CLUSTERS * MAXBSIZE, VM_MAP_INTRSAFE,
+ FALSE, NULL);
/* Attach the disk. */
cs->sc_dkdev.dk_name = cs->sc_xname;