summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-06-09 20:31:50 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-06-09 20:31:50 +0000
commit281c01b8cbd2899a8f46ebb0a07e5c44a560cb9d (patch)
treea57aa3e442394738cb3641f5b3a018855aa3d1e0 /sys/arch/sparc
parent2841d9faabe4c86665d799156297878ec3720e51 (diff)
Create a real holp by using uvm_map() with UVM_FLAG_HOLE in pmap_remove_holes().
No functional change.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/pmap.c8
1 files changed, 5 insertions, 3 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
}