Source-Changes-HG archive

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

[src/trunk]: src/sys/vm Make a slight modification of pmap_growkernel() -- it...



details:   https://anonhg.NetBSD.org/src/rev/818d0e262cb9
branches:  trunk
changeset: 473122:818d0e262cb9
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu May 20 23:25:42 1999 +0000

description:
Make a slight modification of pmap_growkernel() -- it now returns the
end of the mappable kernel virtual address space.  Previously, it would
get called more often than necessary, because the caller only new what
was requested.

Also, export uvm_maxkaddr so that uvm_pageboot_alloc() can grow the
kernel pmap if necessary, as well.  Note that pmap_growkernel() must
now be able to handle being called before pmap_init().

diffstat:

 sys/vm/pmap.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e607dddbd9e2 -r 818d0e262cb9 sys/vm/pmap.h
--- a/sys/vm/pmap.h     Thu May 20 23:03:23 1999 +0000
+++ b/sys/vm/pmap.h     Thu May 20 23:25:42 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.30 1999/05/12 19:11:24 thorpej Exp $        */
+/*     $NetBSD: pmap.h,v 1.31 1999/05/20 23:25:42 thorpej Exp $        */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -146,7 +146,7 @@
                    vaddr_t, paddr_t, vm_prot_t, boolean_t, vm_prot_t));
 paddr_t                pmap_extract __P((pmap_t, vaddr_t));
 #if defined(PMAP_NEW) && defined(PMAP_GROWKERNEL)
-void            pmap_growkernel __P((vaddr_t));
+vaddr_t                 pmap_growkernel __P((vaddr_t));
 #endif
 
 void            pmap_init __P((void));



Home | Main Index | Thread Index | Old Index