summaryrefslogtreecommitdiff
path: root/sys/arch
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
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')
-rw-r--r--sys/arch/sparc/sparc/pmap.c8
-rw-r--r--sys/arch/vax/vax/pmap.c6
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