summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-12-17 06:58:12 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-12-17 06:58:12 +0000
commita45b759c4782fe513ec89d5d4bb06bf38784f061 (patch)
tree2f819accb4d69bd46127e29bbe803b2c5e5ad7ae /sys/arch/sparc64
parent055668cf6b0974a1072d2833eb7db870dc7f43be (diff)
Prefer MADV_* over POSIX_MADV_* in kernel for consistency: the latter
doesn't have all the values and therefore can't be used everywhere. ok deraadt@ kettenis@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/pmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c
index 49bfbc0a9a4..5df58a80294 100644
--- a/sys/arch/sparc64/sparc64/pmap.c
+++ b/sys/arch/sparc64/sparc64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.84 2014/12/15 02:24:23 guenther Exp $ */
+/* $OpenBSD: pmap.c,v 1.85 2014/12/17 06:58:10 guenther Exp $ */
/* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
/*
@@ -3639,8 +3639,7 @@ pmap_remove_holes(struct vm_map *map)
return;
(void)uvm_map(map, &shole, ehole - shole, NULL, UVM_UNKNOWN_OFFSET, 0,
- UVM_MAPFLAG(PROT_NONE, PROT_NONE, MAP_INHERIT_SHARE,
- POSIX_MADV_RANDOM,
+ UVM_MAPFLAG(PROT_NONE, PROT_NONE, MAP_INHERIT_SHARE, MADV_RANDOM,
UVM_FLAG_NOMERGE | UVM_FLAG_HOLE | UVM_FLAG_FIXED));
}