summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc/include
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-06-02 04:31:53 +0000
committermiod <miod@openbsd.org>2015-06-02 04:31:53 +0000
commit8e79c55717e609e92e5438f67738ebd95f27ae2e (patch)
tree38c250ecc0c52ba1d973798762783f8179824e48 /sys/arch/sparc/include
parentwith binutils 2.17 we can change some raw opcodes into instruction names (diff)
downloadwireguard-openbsd-8e79c55717e609e92e5438f67738ebd95f27ae2e.tar.xz
wireguard-openbsd-8e79c55717e609e92e5438f67738ebd95f27ae2e.zip
Override pie range constants (well, only VM_PIE_MAX_ADDR) with a variable
which value is decided at runtime, in order to only enable PIE on sun4m which has a large enough address space.
Diffstat (limited to 'sys/arch/sparc/include')
-rw-r--r--sys/arch/sparc/include/vmparam.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc/include/vmparam.h b/sys/arch/sparc/include/vmparam.h
index 139e61a0dcc..77d0deb2407 100644
--- a/sys/arch/sparc/include/vmparam.h
+++ b/sys/arch/sparc/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.45 2015/03/30 20:30:22 miod Exp $ */
+/* $OpenBSD: vmparam.h,v 1.46 2015/06/02 04:31:53 miod Exp $ */
/* $NetBSD: vmparam.h,v 1.13 1997/07/12 16:20:03 perry Exp $ */
/*
@@ -121,6 +121,9 @@ extern vsize_t vm_kernel_space_size;
#define VM_MIN_ADDRESS ((vaddr_t)0x2000)
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0xfe000000)
+extern vaddr_t vm_pie_max_addr;
+#define VM_PIE_MAX_ADDR vm_pie_max_addr
+
#define IOSPACE_BASE VM_MAX_KERNEL_ADDRESS
#define IOSPACE_LEN 0x01000000 /* 16 MB of iospace */