Module Name:    src
Committed By:   ad
Date:           Sat Jun  6 23:02:25 UTC 2020

Modified Files:
        src/sys/kern: subr_physmap.c

Log Message:
uvmexp.ncolors being used where uvmexp.colormask wanted


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/kern/subr_physmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_physmap.c
diff -u src/sys/kern/subr_physmap.c:1.2 src/sys/kern/subr_physmap.c:1.3
--- src/sys/kern/subr_physmap.c:1.2	Sat Jan 19 01:04:51 2013
+++ src/sys/kern/subr_physmap.c	Sat Jun  6 23:02:25 2020
@@ -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 @@ physmap_map(void *cookie, vaddr_t *kvap)
 		 * 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);
 

Reply via email to