Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/include give some VM which was reserved for th...
details: https://anonhg.NetBSD.org/src/rev/23e576072d2d
branches: trunk
changeset: 542454:23e576072d2d
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Jan 29 14:12:35 2003 +0000
description:
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...
diffstat:
sys/arch/i386/include/pmap.h | 8 ++------
sys/arch/i386/include/vmparam.h | 11 +++--------
2 files changed, 5 insertions(+), 14 deletions(-)
diffs (54 lines):
diff -r 46bc8c992ec6 -r 23e576072d2d sys/arch/i386/include/pmap.h
--- a/sys/arch/i386/include/pmap.h Wed Jan 29 14:03:08 2003 +0000
+++ b/sys/arch/i386/include/pmap.h Wed Jan 29 14:12:35 2003 +0000
@@ -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
diff -r 46bc8c992ec6 -r 23e576072d2d sys/arch/i386/include/vmparam.h
--- a/sys/arch/i386/include/vmparam.h Wed Jan 29 14:03:08 2003 +0000
+++ b/sys/arch/i386/include/vmparam.h Wed Jan 29 14:12:35 2003 +0000
@@ -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))
Home |
Main Index |
Thread Index |
Old Index