Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm/pmap Use PMAP_TLB_MAX instead of MAXCPUS.



details:   https://anonhg.NetBSD.org/src/rev/4c1d7bff01ec
branches:  trunk
changeset: 335384:4c1d7bff01ec
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Mon Jan 05 05:35:18 2015 +0000

description:
Use PMAP_TLB_MAX instead of MAXCPUS.

diffstat:

 sys/uvm/pmap/pmap.c     |  6 +++---
 sys/uvm/pmap/pmap_tlb.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r ae28a1ce89ef -r 4c1d7bff01ec sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c       Mon Jan 05 03:45:31 2015 +0000
+++ b/sys/uvm/pmap/pmap.c       Mon Jan 05 05:35:18 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.8 2014/12/25 08:11:09 nonaka Exp $  */
+/*     $NetBSD: pmap.c,v 1.9 2015/01/05 05:35:18 nonaka Exp $  */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.8 2014/12/25 08:11:09 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.9 2015/01/05 05:35:18 nonaka Exp $");
 
 /*
  *     Manages physical address maps.
@@ -197,7 +197,7 @@
  * Initialize the kernel pmap.
  */
 #ifdef MULTIPROCESSOR
-#define        PMAP_SIZE       offsetof(struct pmap, pm_pai[MAXCPUS])
+#define        PMAP_SIZE       offsetof(struct pmap, pm_pai[PMAP_TLB_MAX])
 #else
 #define        PMAP_SIZE       sizeof(struct pmap)
 kmutex_t pmap_pvlist_mutex __aligned(COHERENCY_UNIT);
diff -r ae28a1ce89ef -r 4c1d7bff01ec sys/uvm/pmap/pmap_tlb.h
--- a/sys/uvm/pmap/pmap_tlb.h   Mon Jan 05 03:45:31 2015 +0000
+++ b/sys/uvm/pmap/pmap_tlb.h   Mon Jan 05 05:35:18 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_tlb.h,v 1.6 2014/04/03 14:46:25 matt Exp $        */
+/*     $NetBSD: pmap_tlb.h,v 1.7 2015/01/05 05:35:18 nonaka Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -144,7 +144,7 @@
 #ifdef _KERNEL
 extern struct pmap_tlb_info pmap_tlb0_info;
 #ifdef MULTIPROCESSOR
-extern struct pmap_tlb_info *pmap_tlbs[MAXCPUS];
+extern struct pmap_tlb_info *pmap_tlbs[PMAP_TLB_MAX];
 extern u_int pmap_ntlbs;
 #endif
 



Home | Main Index | Thread Index | Old Index