diff options
-rw-r--r-- | sys/arch/sparc/sparc/pmap.c | 8 | ||||
-rw-r--r-- | sys/arch/vax/vax/pmap.c | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c index ad4a3d1f1bb..1a3e4fab3df 100644 --- a/sys/arch/sparc/sparc/pmap.c +++ b/sys/arch/sparc/sparc/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.148 2008/06/08 20:57:19 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.149 2008/06/09 20:31:47 miod Exp $ */ /* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */ /* @@ -6163,8 +6163,10 @@ pmap_remove_holes(struct vm_map *map) if (ehole <= shole) return; - uvm_map_reserve(map, ehole - shole, UVM_UNKNOWN_OFFSET, - 0, &shole); + (void)uvm_map(map, &shole, ehole - shole, NULL, + UVM_UNKNOWN_OFFSET, 0, + UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE, + UVM_ADV_RANDOM, UVM_FLAG_NOMERGE | UVM_FLAG_HOLE)); } #endif } diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c index 6bf64c95fa1..7807ce56db7 100644 --- a/sys/arch/vax/vax/pmap.c +++ b/sys/arch/vax/vax/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.42 2008/03/30 18:25:13 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.43 2008/06/09 20:31:49 miod Exp $ */ /* $NetBSD: pmap.c,v 1.74 1999/11/13 21:32:25 matt Exp $ */ /* * Copyright (c) 1994, 1998, 1999 Ludd, University of Lule}, Sweden. @@ -427,7 +427,9 @@ pmap_remove_holes(struct vm_map *map) if (ehole <= shole) return; - uvm_map_reserve(map, ehole - shole, UVM_UNKNOWN_OFFSET, 0, &shole); + (void)uvm_map(map, &shole, ehole - shole, NULL, UVM_UNKNOWN_OFFSET, 0, + UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE, + UVM_ADV_RANDOM, UVM_FLAG_NOMERGE | UVM_FLAG_HOLE)); } void |