From 43deeba2146cca5f740f34bd407989eaf608b3bc Mon Sep 17 00:00:00 2001 From: miod Date: Thu, 14 Aug 2014 17:21:38 +0000 Subject: [PATCH] Bring back 1.173 (reverting 1.174) - mips64 systems are still unhappy when the hint returned is over VM_MAXUSER_ADDRESS, apparently; better be safe for now while this is investigated further. --- sys/uvm/uvm_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index d96a204faba..0ec20c8e8e1 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.174 2014/08/12 04:29:05 miod Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.175 2014/08/14 17:21:38 miod 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 -#if defined (__LP64__) +#if defined (__LP64__) && !defined (__mips64__) spacing = (MIN((4UL * 1024 * 1024 * 1024), BRKSIZ) - 1); #else spacing = (MIN((256 * 1024 * 1024), BRKSIZ) - 1); -- 2.20.1