From: kurt Date: Fri, 25 Jul 2008 20:51:56 +0000 (+0000) Subject: The PIE address range defaults are too big for alpha and can land on or X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3f96edc058c202f127fc6ac52fe0b1a337a59cf8;p=openbsd 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@ --- 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)