Module Name: src Committed By: reinoud Date: Tue Jan 3 12:16:16 UTC 2012
Modified Files: src/sys/arch/usermode/usermode: pmap.c Log Message: Set the total memory length to be ALL the space *before* the kernel. To generate a diff of this commit: cvs rdiff -u -r1.90 -r1.91 src/sys/arch/usermode/usermode/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/usermode/usermode/pmap.c diff -u src/sys/arch/usermode/usermode/pmap.c:1.90 src/sys/arch/usermode/usermode/pmap.c:1.91 --- src/sys/arch/usermode/usermode/pmap.c:1.90 Tue Jan 3 12:05:00 2012 +++ src/sys/arch/usermode/usermode/pmap.c Tue Jan 3 12:16:16 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.90 2012/01/03 12:05:00 reinoud Exp $ */ +/* $NetBSD: pmap.c,v 1.91 2012/01/03 12:16:16 reinoud Exp $ */ /*- * Copyright (c) 2011 Reinoud Zandijk <rein...@netbsd.org> @@ -27,10 +27,11 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.90 2012/01/03 12:05:00 reinoud Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.91 2012/01/03 12:16:16 reinoud Exp $"); #include "opt_memsize.h" #include "opt_kmempages.h" +#include "opt_misc.h" #include <sys/types.h> #include <sys/param.h> @@ -167,7 +168,7 @@ pmap_bootstrap(void) kmem_k_end = (vaddr_t) PAGE_SIZE * (atop(&etext) + 1); /* calculate total available memory space */ - totmem_len = (vaddr_t) mem_kvm + KVMSIZE; + totmem_len = (vaddr_t) TEXTADDR; /* calculate the number of available pages */ physmem = totmem_len / PAGE_SIZE;