diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-05-07 15:48:02 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-05-07 15:48:02 +0000 |
commit | 8dc30322b84447cb6c38ba7c2ee0003d77716a68 (patch) | |
tree | 1246f8a3309c8b28576ff15e59b686a97cf57570 /sys/arch/m88k | |
parent | 3d79b17e0a91f6d3169d8964399c9a3a68d30a1c (diff) |
Move the userland stack at the top of the userland address space.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/include/vmparam.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/sys/arch/m88k/include/vmparam.h b/sys/arch/m88k/include/vmparam.h index 8f19a0667c1..9f6b109066c 100644 --- a/sys/arch/m88k/include/vmparam.h +++ b/sys/arch/m88k/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.4 2005/12/01 22:24:49 miod Exp $ */ +/* $OpenBSD: vmparam.h,v 1.5 2006/05/07 15:48:01 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1992 Carnegie Mellon University @@ -38,7 +38,7 @@ * is the top (end) of the user stack. */ #define USRTEXT 0x1000 /* Start of user text */ -#define USRSTACK 0x80000000 /* Start of user stack */ +#define USRSTACK VM_MAXUSER_ADDRESS /* Start of user stack */ /* * Virtual memory related constants, all in bytes @@ -68,16 +68,18 @@ #define SHMMAXPGS 1024 #endif -#define VM_MIN_ADDRESS ((vaddr_t) 0) -#define VM_MAX_ADDRESS ((vaddr_t) 0xffc00000) +#define VM_MIN_ADDRESS ((vaddr_t)0) +#define VM_MAX_ADDRESS ((vaddr_t)0xffc00000) #define VM_MAXUSER_ADDRESS VM_MAX_ADDRESS -/* on vme188, max = 0xf0000000 */ - -#define VM_MIN_KERNEL_ADDRESS ((vaddr_t) 0) -#define VM_MAX_KERNEL_ADDRESS ((vaddr_t) 0x20000000) +/* + * Although user and supervisor address spaces are separate, we limit + * ourselves to 512KB KVM because the kernel page table is statically + * allocated. + */ +#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)0) +#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0x20000000) -#define KERNEL_STACK_SIZE (3 * PAGE_SIZE) /* kernel stack size */ #define INTSTACK_SIZE (4 * PAGE_SIZE) /* interrupt stack size */ /* virtual sizes (bytes) for various kernel submaps */ |