give some VM which was reserved for the UAREA but not used anymore back

to the user and adjust some comments (which were not accurate anyway
since NOREDZONE)
binary compatibility note: changing VM_MAXUSER_ADDRESS might influence
some sanity check in kvm_proc, where arguments on the stack are dealt
with, but it was a variable anyway and noone did care...
This commit is contained in:
drochner 2003-01-29 14:12:35 +00:00
parent e81f9f1784
commit e3b243beb8
2 changed files with 5 additions and 14 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.67 2003/01/17 23:10:29 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.68 2003/01/29 14:12:35 drochner Exp $ */
/*
*
@ -61,11 +61,7 @@
* (the following assumes that KERNBASE is 0xc0000000)
*
* PDE#s VA range usage
* 0->766 0x0 -> 0xbfc00000 user address space, note that the
* max user address is 0xbfbfe000
* the final two pages in the last 4MB
* used to be reserved for the UAREA
* but now are no longer used
* 0->766 0x0 -> 0xbfc00000 user address space
* 767 0xbfc00000-> recursive mapping of PDP (used for
* 0xc0000000 linear mapping of PTPs)
* 768->1023 0xc0000000-> kernel address space (constant

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.46 2002/12/10 05:14:28 thorpej Exp $ */
/* $NetBSD: vmparam.h,v 1.47 2003/01/29 14:12:36 drochner Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -57,11 +57,7 @@
* Virtual address space arrangement. On 386, both user and kernel
* share the address space, not unlike the vax.
* USRSTACK is the top (end) of the user stack. Immediately above the
* user stack resides the user structure, which is UPAGES long and contains
* the kernel stack.
*
* Immediately after the user structure is the page table map, and then
* kernal address space.
* user stack is the page table map, and then kernal address space.
*/
#define USRSTACK VM_MAXUSER_ADDRESS
@ -100,8 +96,7 @@
/* user/kernel map constants */
#define VM_MIN_ADDRESS ((vaddr_t)0)
#define VM_MAXUSER_ADDRESS \
((vaddr_t)((PDSLOT_PTE << PDSHIFT) - (UPAGES * NBPG)))
#define VM_MAXUSER_ADDRESS ((vaddr_t)(PDSLOT_PTE << PDSHIFT))
#define VM_MAX_ADDRESS \
((vaddr_t)((PDSLOT_PTE << PDSHIFT) + (PDSLOT_PTE << PGSHIFT)))
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)(PDSLOT_KERN << PDSHIFT))