summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2008-07-25 20:51:57 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2008-07-25 20:51:57 +0000
commit696c63ba2d175f9fb24c55acaa9a10e1a5f59e55 (patch)
tree3d1ea3c9bb095f40971e002595e62e855310832e /sys/arch
parent092ba8166a6c2e6cd4b6ae7637fc23117aa98566 (diff)
The PIE address range defaults are too big for alpha and can land on or
above the stack. Fix by mapping PIE into the first quarter of the address space before stack. "will do for now" miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/include/vmparam.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/vmparam.h b/sys/arch/alpha/include/vmparam.h
index 8febfdf5fdb..a1241eb0515 100644
--- a/sys/arch/alpha/include/vmparam.h
+++ b/sys/arch/alpha/include/vmparam.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmparam.h,v 1.15 2008/06/24 21:24:01 deraadt Exp $ */
+/* $OpenBSD: vmparam.h,v 1.16 2008/07/25 20:51:56 kurt Exp $ */
/* $NetBSD: vmparam.h,v 1.18 2000/05/22 17:13:54 thorpej Exp $ */
/*
@@ -108,6 +108,10 @@
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)ALPHA_K1SEG_BASE)
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)ALPHA_K1SEG_END)
+/* map PIE into the first quarter of the address space before stack */
+#define VM_PIE_MIN_ADDR PAGE_SIZE
+#define VM_PIE_MAX_ADDR 0x80000000
+
/* virtual sizes (bytes) for various kernel submaps */
#define VM_PHYS_SIZE (USRIOSIZE*NBPG)