From 038a27157d62fa0e6d4bc23d6e2460376ecf5f26 Mon Sep 17 00:00:00 2001 From: nonaka Date: Mon, 5 Jan 2015 05:35:18 +0000 Subject: [PATCH] Use PMAP_TLB_MAX instead of MAXCPUS. --- sys/uvm/pmap/pmap.c | 6 +++--- sys/uvm/pmap/pmap_tlb.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/uvm/pmap/pmap.c b/sys/uvm/pmap/pmap.c index f4ce925c22d5..debd4e9a80f6 100644 --- a/sys/uvm/pmap/pmap.c +++ b/sys/uvm/pmap/pmap.c @@ -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 -__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 @@ CTASSERT(PMAP_ASID_RESERVED == 0); * 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 --git a/sys/uvm/pmap/pmap_tlb.h b/sys/uvm/pmap/pmap_tlb.h index 368dc1569114..e0ca841bf0e5 100644 --- a/sys/uvm/pmap/pmap_tlb.h +++ b/sys/uvm/pmap/pmap_tlb.h @@ -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 @@ struct pmap_tlb_info { #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