Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Update a comment



details:   https://anonhg.NetBSD.org/src/rev/fde898e5ca42
branches:  trunk
changeset: 936557:fde898e5ca42
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jul 30 07:31:30 2020 +0000

description:
Update a comment

diffstat:

 sys/arch/mips/mips/pmap_machdep.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r 4787e717d99f -r fde898e5ca42 sys/arch/mips/mips/pmap_machdep.c
--- a/sys/arch/mips/mips/pmap_machdep.c Thu Jul 30 06:54:07 2020 +0000
+++ b/sys/arch/mips/mips/pmap_machdep.c Thu Jul 30 07:31:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_machdep.c,v 1.27 2020/03/11 13:30:31 thorpej Exp $        */
+/*     $NetBSD: pmap_machdep.c,v 1.28 2020/07/30 07:31:30 skrll Exp $  */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.27 2020/03/11 13:30:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.28 2020/07/30 07:31:30 skrll Exp $");
 
 /*
  *     Manages physical address maps.
@@ -704,10 +704,10 @@
 pmap_md_alloc_poolpage(int flags)
 {
        /*
-        * On 32bit kernels, we must make sure that we only allocate pages that
-        * can be mapped via KSEG0.  On 64bit kernels, try to allocated from
-        * the first 4G.  If all memory is in KSEG0/4G, then we can just
-        * use the default freelist otherwise we must use the pool page list.
+        * The VM_FREELIST used for pool pages is only set on 32bit kernels.
+        * This is to must make sure that we only allocate pages that
+        * can be mapped via KSEG0.  On 64bit kernels, all memory can be
+        * mapped via XKPHYS so just use the default freelist.
         */
        if (mips_poolpage_vmfreelist != VM_FREELIST_DEFAULT)
                return uvm_pagealloc_strat(NULL, 0, NULL, flags,



Home | Main Index | Thread Index | Old Index