Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha Remove the adjustment of VM_PHYS_SIZE for `la...



details:   https://anonhg.NetBSD.org/src/rev/c1ee35ae40ce
branches:  trunk
changeset: 486461:c1ee35ae40ce
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon May 22 17:13:53 2000 +0000

description:
Remove the adjustment of VM_PHYS_SIZE for `large memory machines'.  The
only adjustment that was really necessary was for VM_KMEM_SIZE, and that
is no longer necessary because there is now generic auto-sizing for
kmem_map.

diffstat:

 sys/arch/alpha/alpha/machdep.c   |  18 ++----------------
 sys/arch/alpha/include/vmparam.h |  11 ++---------
 2 files changed, 4 insertions(+), 25 deletions(-)

diffs (71 lines):

diff -r 771b98a77712 -r c1ee35ae40ce sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Mon May 22 17:01:30 2000 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Mon May 22 17:13:53 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.204 2000/03/29 03:09:15 enami Exp $ */
+/* $NetBSD: machdep.c,v 1.205 2000/05/22 17:13:53 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.204 2000/03/29 03:09:15 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.205 2000/05/22 17:13:53 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -235,8 +235,6 @@
 
 struct platform platform;
 
-u_int32_t vm_phys_size = _VM_PHYS_SIZE;
-
 #ifdef DDB
 /* start and end of kernel symbol table */
 void   *ksym_start, *ksym_end;
@@ -646,18 +644,6 @@
 #endif
 
        /*
-        * Adjust some parameters if the amount of physmem
-        * available would cause us to croak. This is completely
-        * eyeballed and isn't meant to be the final answer.
-        * vm_phys_size is probably the only one to really worry
-        * about.
-        *
-        * It's for booting a GENERIC kernel on a large memory platform.
-        */
-       if (physmem >= atop(128 * 1024 * 1024))
-               vm_phys_size <<= 2;
-
-       /*
         * Initialize error message buffer (at end of core).
         */
        {
diff -r 771b98a77712 -r c1ee35ae40ce sys/arch/alpha/include/vmparam.h
--- a/sys/arch/alpha/include/vmparam.h  Mon May 22 17:01:30 2000 +0000
+++ b/sys/arch/alpha/include/vmparam.h  Mon May 22 17:13:53 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmparam.h,v 1.17 2000/02/11 19:25:13 thorpej Exp $ */
+/* $NetBSD: vmparam.h,v 1.18 2000/05/22 17:13:54 thorpej Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -121,14 +121,7 @@
 #define VM_MAX_KERNEL_ADDRESS  ((vaddr_t)ALPHA_K1SEG_END)
 
 /* virtual sizes (bytes) for various kernel submaps */
-#define _VM_PHYS_SIZE          (USRIOSIZE*NBPG)
-
-#ifndef        _KERNEL
-#define VM_PHYS_SIZE           _VM_PHYS_SIZE
-#else
-extern u_int32_t vm_phys_size;
-#define VM_PHYS_SIZE           vm_phys_size
-#endif /* _KERNEL */
+#define VM_PHYS_SIZE           (USRIOSIZE*NBPG)
 
 /* some Alpha-specific constants */
 #define        VPTBASE         ((vaddr_t)0xfffffffc00000000)   /* Virt. pg table */



Home | Main Index | Thread Index | Old Index