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 Maintain the split of physical memory int...



details:   https://anonhg.NetBSD.org/src/rev/e01538fc5d39
branches:  trunk
changeset: 354274:e01538fc5d39
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Jun 09 06:43:30 2017 +0000

description:
Maintain the split of physical memory into the defined freelists, but
only force pool pages to VM_FREELIST_FIRST512M for non _LP64

diffstat:

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

diffs (34 lines):

diff -r d7acd9d09cd1 -r e01538fc5d39 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Fri Jun 09 06:39:24 2017 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Fri Jun 09 06:43:30 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.277 2017/05/07 05:45:07 skrll Exp $ */
+/*     $NetBSD: mips_machdep.c,v 1.278 2017/06/09 06:43:30 skrll Exp $ */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.277 2017/05/07 05:45:07 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.278 2017/06/09 06:43:30 skrll Exp $");
 
 #define __INTR_PRIVATE
 #include "opt_cputype.h"
@@ -2104,13 +2104,14 @@
 #ifdef VM_FREELIST_FIRST4G
                if (round_page(segs[i].start + segs[i].size) > FOURGIG) {
                        need4g = true;
-                       mips_poolpage_vmfreelist = VM_FREELIST_FIRST4G;
                }
 #endif
 #ifdef VM_FREELIST_FIRST512M
                if (round_page(segs[i].start + segs[i].size) > HALFGIG) {
                        need512m = true;
+#if !defined(_LP64)
                        mips_poolpage_vmfreelist = VM_FREELIST_FIRST512M;
+#endif
                }
 #endif
        }



Home | Main Index | Thread Index | Old Index