diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-12-17 06:58:12 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-12-17 06:58:12 +0000 |
commit | a45b759c4782fe513ec89d5d4bb06bf38784f061 (patch) | |
tree | 2f819accb4d69bd46127e29bbe803b2c5e5ad7ae /sys/dev/isa | |
parent | 055668cf6b0974a1072d2833eb7db870dc7f43be (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/dev/isa')
-rw-r--r-- | sys/dev/isa/aha.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/aha.c b/sys/dev/isa/aha.c index 02a8e853a7d..7e09e4330f6 100644 --- a/sys/dev/isa/aha.c +++ b/sys/dev/isa/aha.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aha.c,v 1.79 2014/12/15 02:24:23 guenther Exp $ */ +/* $OpenBSD: aha.c,v 1.80 2014/12/17 06:58:10 guenther Exp $ */ /* $NetBSD: aha.c,v 1.11 1996/05/12 23:51:23 mycroft Exp $ */ #undef AHADIAG @@ -1080,7 +1080,7 @@ aha_init(sc) if (uvm_pglistalloc(size, 0, 0xffffff, PAGE_SIZE, 0, &pglist, 1, UVM_PLA_NOWAIT) || uvm_map(kernel_map, &va, size, NULL, UVM_UNKNOWN_OFFSET, 0, UVM_MAPFLAG(PROT_MASK, PROT_MASK, - MAP_INHERIT_NONE, POSIX_MADV_RANDOM, 0))) + MAP_INHERIT_NONE, MADV_RANDOM, 0))) panic("aha_init: could not allocate mailbox"); wmbx = (struct aha_mbx *)va; |