summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2008-08-22 10:41:38 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2008-08-22 10:41:38 +0000
commite364aeeaa92456126da89cd19096f18f388d1c76 (patch)
treec7cd01c3b7ccae7aced8b751375df5b9e3a94e93 /sys/arch/hppa
parent36694beb0abb8a4ac82dee69e4672a1ef73d5ec3 (diff)
Set PIE address range to avoid or minimize mmap pressure due to limited
address space. The space between PAGE_SIZE and the non-pie fixed link address creates no mmap pressure so use that space for PIE. However on hppa the non-pie fixed link address is PAGE_SIZE so just use a small range for PIE to minimize mmap pressure. okay miod@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/include/vmparam.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/vmparam.h b/sys/arch/hppa/include/vmparam.h
index 6e3657028f8..6519c8601aa 100644
--- a/sys/arch/hppa/include/vmparam.h
+++ b/sys/arch/hppa/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.33 2006/06/04 17:21:24 miod Exp $ */
+/* $OpenBSD: vmparam.h,v 1.34 2008/08/22 10:41:37 kurt Exp $ */
/*
* Copyright (c) 1988-1994, The University of Utah and
@@ -77,6 +77,10 @@
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)0xc0001000)
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0xef000000)
+/* use a small range for PIE to minimize mmap pressure */
+#define VM_PIE_MIN_ADDR PAGE_SIZE
+#define VM_PIE_MAX_ADDR 0x40000UL
+
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE)