From a45b759c4782fe513ec89d5d4bb06bf38784f061 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Wed, 17 Dec 2014 06:58:12 +0000 Subject: 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@ --- sys/arch/vax/vax/pmap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/arch/vax') 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)); } -- cgit v1.2.3