summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-03-30 21:09:55 +0000
committermiod <miod@openbsd.org>2015-03-30 21:09:55 +0000
commitb1377017cd85b76cc36c7ba5a752e722bbc61e97 (patch)
treea24953c126ad30d80bcd9cc2ba31ccb25248605c
parentExtend uvm_map_hint() to get an address range as extra arguments, and make (diff)
downloadwireguard-openbsd-b1377017cd85b76cc36c7ba5a752e722bbc61e97.tar.xz
wireguard-openbsd-b1377017cd85b76cc36c7ba5a752e722bbc61e97.zip
Revert 1.173 (special-casing mips64) now that uvm_map_hint()'s return value is
constrained to a suitable range.
-rw-r--r--sys/uvm/uvm_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index 80bfee3bb13..76616eebbbe 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.189 2015/03/30 21:08:40 miod Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.190 2015/03/30 21:09:55 miod Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -3732,7 +3732,7 @@ uvm_map_hint(struct vmspace *vm, vm_prot_t prot, vaddr_t minaddr,
}
#endif
-#if defined (__LP64__) && !defined (__mips64__)
+#if defined (__LP64__)
spacing = (MIN((4UL * 1024 * 1024 * 1024), BRKSIZ) - 1);
#else
spacing = (MIN((256 * 1024 * 1024), BRKSIZ) - 1);