Source-Changes-HG archive

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

[src/trunk]: src/sys/kern uvmexp.ncolors being used where uvmexp.colormask wa...



details:   https://anonhg.NetBSD.org/src/rev/d153ceb5c3c6
branches:  trunk
changeset: 1010798:d153ceb5c3c6
user:      ad <ad%NetBSD.org@localhost>
date:      Sat Jun 06 23:02:25 2020 +0000

description:
uvmexp.ncolors being used where uvmexp.colormask wanted

diffstat:

 sys/kern/subr_physmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d6f2190bd499 -r d153ceb5c3c6 sys/kern/subr_physmap.c
--- a/sys/kern/subr_physmap.c   Sat Jun 06 22:33:23 2020 +0000
+++ b/sys/kern/subr_physmap.c   Sat Jun 06 23:02:25 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_physmap.c,v 1.2 2013/01/19 01:04:51 rmind Exp $   */
+/*     $NetBSD: subr_physmap.c,v 1.3 2020/06/06 23:02:25 ad Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: subr_physmap.c,v 1.2 2013/01/19 01:04:51 rmind Exp $");
+__KERNEL_RCSID(1, "$NetBSD: subr_physmap.c,v 1.3 2020/06/06 23:02:25 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/physmap.h>
@@ -316,7 +316,7 @@
                 * so we map it via the kernel_map.
                 */
                pc->pc_kva = uvm_km_alloc(kernel_map, pc->pc_klen,
-                   atop(pa) & uvmexp.ncolors,
+                   atop(pa) & uvmexp.colormask,
                    UVM_KMF_VAONLY | UVM_KMF_WAITVA | UVM_KMF_COLORMATCH);
                KASSERT(pc->pc_kva != 0);
 



Home | Main Index | Thread Index | Old Index