summaryrefslogtreecommitdiff
path: root/sys/arch/vax
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/vax
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/vax')
-rw-r--r--sys/arch/vax/vax/pmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/vax/vax/pmap.c b/sys/arch/vax/vax/pmap.c
index f8643dd4fbe..6a51efe013e 100644
--- a/sys/arch/vax/vax/pmap.c
+++ b/sys/arch/vax/vax/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.73 2014/12/15 02:24:23 guenther Exp $ */
+/* $OpenBSD: pmap.c,v 1.74 2014/12/17 06:58:10 guenther Exp $ */
/* $NetBSD: pmap.c,v 1.74 1999/11/13 21:32:25 matt Exp $ */
/*
* Copyright (c) 1994, 1998, 1999, 2003 Ludd, University of Lule}, Sweden.
@@ -868,8 +868,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));
}