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 the crash(1) build for mips platforms



details:   https://anonhg.NetBSD.org/src/rev/2a9a2154e8ba
branches:  trunk
changeset: 372109:2a9a2154e8ba
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Oct 27 05:33:37 2022 +0000

description:
Fix the crash(1) build for mips platforms

diffstat:

 sys/uvm/pmap/pmap.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2830ca633ef2 -r 2a9a2154e8ba sys/uvm/pmap/pmap.h
--- a/sys/uvm/pmap/pmap.h       Thu Oct 27 00:26:20 2022 +0000
+++ b/sys/uvm/pmap/pmap.h       Thu Oct 27 05:33:37 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.22 2022/10/26 07:35:20 skrll Exp $  */
+/*     $NetBSD: pmap.h,v 1.23 2022/10/27 05:33:37 skrll Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -225,6 +225,8 @@
        struct pmap_asid_info   pm_pai[1];
 };
 
+
+#ifdef _KERNEL
 static inline void
 pmap_lock(struct pmap *pm)
 {
@@ -239,7 +241,6 @@
        rw_exit(pm->pm_lock);
 }
 
-#ifdef _KERNEL
 struct pmap_kernel {
        struct pmap kernel_pmap;
 #if defined(MULTIPROCESSOR) && PMAP_TLB_MAX > 1



Home | Main Index | Thread Index | Old Index