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.
This commit is contained in:
thorpej 2000-05-22 17:13:53 +00:00
parent 75db01943c
commit 09e72ae7e2
2 changed files with 4 additions and 25 deletions

View File

@ -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 @@ u_int8_t dec_3000_scsiid[2], dec_3000_scsifast[2];
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;
@ -645,18 +643,6 @@ nobootinfo:
printf("unknownmem = %d\n", unknownmem);
#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).
*/

View File

@ -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 */