summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2014-07-13 15:33:28 +0000
committerpirofti <pirofti@openbsd.org>2014-07-13 15:33:28 +0000
commit56a2ef77c6da6923ca6c29caa0452e809e43f638 (patch)
treead716b1c631875197a5ff6b77d6fd9cd739c48f4
parentInitial support to read GPT partition tables in the kernel, if option GPT. (diff)
downloadwireguard-openbsd-56a2ef77c6da6923ca6c29caa0452e809e43f638.tar.xz
wireguard-openbsd-56a2ef77c6da6923ca6c29caa0452e809e43f638.zip
Fall back to smaller spacing on the mips64 machines.
Please spare some change for the mips64 memory-challenged machines.. Some change, Sir? Fixes at least the octeon platform. Found the hardway on my DSR500. Found by Boss tedu@ and Boss deraadt@ Okay Boss miod@
-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 86fb84d4425..09f001e82a3 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.172 2014/07/13 08:15:16 tedu Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.173 2014/07/13 15:33:28 pirofti Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -3541,7 +3541,7 @@ uvm_map_hint(struct vmspace *vm, vm_prot_t prot)
}
#endif
-#ifdef __LP64__
+#if defined (__LP64__) && !defined (__mips64__)
spacing = (MIN((4UL * 1024 * 1024 * 1024), BRKSIZ) - 1);
#else
spacing = (MIN((256 * 1024 * 1024), BRKSIZ) - 1);