diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/include/vmparam.h | 6 | ||||
-rw-r--r-- | sys/arch/i386/include/vmparam.h | 6 | ||||
-rw-r--r-- | sys/arch/macppc/include/vmparam.h | 6 | ||||
-rw-r--r-- | sys/arch/sparc64/include/vmparam.h | 6 |
4 files changed, 20 insertions, 4 deletions
diff --git a/sys/arch/amd64/include/vmparam.h b/sys/arch/amd64/include/vmparam.h index 3822f13d557..fd82b226db2 100644 --- a/sys/arch/amd64/include/vmparam.h +++ b/sys/arch/amd64/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.9 2008/06/24 21:24:03 deraadt Exp $ */ +/* $OpenBSD: vmparam.h,v 1.10 2008/07/18 16:40:17 kurt Exp $ */ /* $NetBSD: vmparam.h,v 1.1 2003/04/26 18:39:49 fvdl Exp $ */ /*- @@ -96,6 +96,10 @@ #define VM_MAXUSER_ADDRESS32 0xffffc000 +/* map PIE into approximately the first quarter of user va space */ +#define VM_PIE_MIN_ADDR VM_MIN_ADDRESS +#define VM_PIE_MAX_ADDR 0x200000000000 + /* virtual sizes (bytes) for various kernel submaps */ #define VM_PHYS_SIZE (USRIOSIZE*PAGE_SIZE) diff --git a/sys/arch/i386/include/vmparam.h b/sys/arch/i386/include/vmparam.h index e871997fd43..9c2163e6c2d 100644 --- a/sys/arch/i386/include/vmparam.h +++ b/sys/arch/i386/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.40 2008/06/24 21:24:03 deraadt Exp $ */ +/* $OpenBSD: vmparam.h,v 1.41 2008/07/18 16:40:17 kurt Exp $ */ /* $NetBSD: vmparam.h,v 1.15 1994/10/27 04:16:34 cgd Exp $ */ /*- @@ -77,6 +77,10 @@ /* I386 has a line where all code is executable: 0 - I386_MAX_EXE_ADDR */ #define I386_MAX_EXE_ADDR 0x20000000 /* exec line */ +/* map PIE into 320MB - 448MB address range */ +#define VM_PIE_MIN_ADDR 0x14000000 +#define VM_PIE_MAX_ADDR 0x1C000000 + /* * Size of shared memory map */ diff --git a/sys/arch/macppc/include/vmparam.h b/sys/arch/macppc/include/vmparam.h index ab20ab911a9..c0fcbd26b80 100644 --- a/sys/arch/macppc/include/vmparam.h +++ b/sys/arch/macppc/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.19 2007/06/14 14:27:46 drahn Exp $ */ +/* $OpenBSD: vmparam.h,v 1.20 2008/07/18 16:40:17 kurt Exp $ */ /* $NetBSD: vmparam.h,v 1.1 1996/09/30 16:34:38 ws Exp $ */ /*- @@ -80,6 +80,10 @@ #define VM_MAX_ADDRESS VM_MAXUSER_ADDRESS #define VM_MIN_KERNEL_ADDRESS ((vaddr_t)(PPC_KERNEL_SR << ADDR_SR_SHIFT)) +/* map PIE into approximately the first quarter of user va space */ +#define VM_PIE_MIN_ADDR PAGE_SIZE +#define VM_PIE_MAX_ADDR 0x40000000 + /* ppc_kvm_stolen is so that vm space can be stolen before vm is fully * initialized. */ diff --git a/sys/arch/sparc64/include/vmparam.h b/sys/arch/sparc64/include/vmparam.h index ba1bdaf2120..f2239697466 100644 --- a/sys/arch/sparc64/include/vmparam.h +++ b/sys/arch/sparc64/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.17 2008/06/04 18:11:34 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.18 2008/07/18 16:40:17 kurt Exp $ */ /* $NetBSD: vmparam.h,v 1.18 2001/05/01 02:19:19 thorpej Exp $ */ /* @@ -131,6 +131,10 @@ #define VM_MAX_ADDRESS ((vaddr_t)-1) #define VM_MAXUSER_ADDRESS ((vaddr_t)-1) +/* map PIE into the first quarter of the address space before hole */ +#define VM_PIE_MIN_ADDR PAGE_SIZE +#define VM_PIE_MAX_ADDR 0x10000000000 + #define VM_MIN_KERNEL_ADDRESS ((vaddr_t)KERNBASE) #define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0x000007ffffffffffL) |