diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2002-11-10 21:23:10 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2002-11-10 21:23:10 +0000 |
commit | b4f62b8d6d83c549a2d02fc25ea9774985a6b9ca (patch) | |
tree | 580123d9d2345a3298637a1ce2fc0fc82d40ab08 /sys/arch/sparc | |
parent | c517555770b7ed4645534243ad040834e8addd20 (diff) |
Use appropriate VM_MAP constants rather than hardcoded values in
uvm_map_create() and uvm_km_suballoc().
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/if_ie.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/machdep.c | 5 |
2 files changed, 5 insertions, 4 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"); /* |