Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm/pmap Only include `static inline pmap_asid_check()` ...
details: https://anonhg.NetBSD.org/src/rev/01656159fd0d
branches: trunk
changeset: 346893:01656159fd0d
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Fri Aug 05 20:54:28 2016 +0000
description:
Only include `static inline pmap_asid_check()` if it might be used.
Should fix HEAD-llvm evbppc autobuild.
diffstat:
sys/uvm/pmap/pmap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r e0ed50e02aa4 -r 01656159fd0d sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c Fri Aug 05 20:21:58 2016 +0000
+++ b/sys/uvm/pmap/pmap.c Fri Aug 05 20:54:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.18 2016/07/14 05:00:51 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.19 2016/08/05 20:54:28 jakllsch 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.18 2016/07/14 05:00:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.19 2016/08/05 20:54:28 jakllsch Exp $");
/*
* Manages physical address maps.
@@ -276,10 +276,10 @@
* Debug functions.
*/
+#ifdef DEBUG
static inline void
pmap_asid_check(pmap_t pm, const char *func)
{
-#ifdef DEBUG
if (!PMAP_IS_ACTIVE(pm))
return;
@@ -288,8 +288,8 @@
if (asid != pai->pai_asid)
panic("%s: inconsistency for active TLB update: %u <-> %u",
func, asid, pai->pai_asid);
+}
#endif
-}
static void
pmap_addr_range_check(pmap_t pmap, vaddr_t sva, vaddr_t eva, const char *func)
Home |
Main Index |
Thread Index |
Old Index