Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode/usermode Set the total memory length to be...



details:   https://anonhg.NetBSD.org/src/rev/9dff19a5f240
branches:  trunk
changeset: 772423:9dff19a5f240
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Tue Jan 03 12:16:16 2012 +0000

description:
Set the total memory length to be ALL the space *before* the kernel.

diffstat:

 sys/arch/usermode/usermode/pmap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 90ed75d743e9 -r 9dff19a5f240 sys/arch/usermode/usermode/pmap.c
--- a/sys/arch/usermode/usermode/pmap.c Tue Jan 03 12:10:04 2012 +0000
+++ b/sys/arch/usermode/usermode/pmap.c Tue Jan 03 12:16:16 2012 +0000
@@ -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 <reinoud%NetBSD.org@localhost>
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index