Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm/pmap Fix compile for non-MULTIPROCESSOR and PMAP_TLB...



details:   https://anonhg.NetBSD.org/src/rev/93457d411029
branches:  trunk
changeset: 376346:93457d411029
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jun 12 06:47:17 2023 +0000

description:
Fix compile for non-MULTIPROCESSOR and PMAP_TLB_MAX > 1 builds

diffstat:

 sys/uvm/pmap/pmap_tlb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1121d60f1537 -r 93457d411029 sys/uvm/pmap/pmap_tlb.c
--- a/sys/uvm/pmap/pmap_tlb.c   Mon Jun 12 06:36:28 2023 +0000
+++ b/sys/uvm/pmap/pmap_tlb.c   Mon Jun 12 06:47:17 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_tlb.c,v 1.58 2023/06/12 06:36:28 skrll Exp $      */
+/*     $NetBSD: pmap_tlb.c,v 1.59 2023/06/12 06:47:17 skrll Exp $      */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.58 2023/06/12 06:36:28 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.59 2023/06/12 06:47:17 skrll Exp $");
 
 /*
  * Manages address spaces in a TLB.
@@ -1114,7 +1114,7 @@ void
 pmap_db_tlb_print(struct pmap *pm,
     void (*pr)(const char *, ...) __printflike(1, 2))
 {
-#if PMAP_TLB_MAX == 1
+#if !defined(MULTIPROCESSOR) || PMAP_TLB_MAX == 1
        pr(" asid %5u\n", pm->pm_pai[0].pai_asid);
 #else
        for (size_t i = 0; i < (PMAP_TLB_MAX > 1 ? pmap_ntlbs : 1); i++) {



Home | Main Index | Thread Index | Old Index