Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 avoid a build error in the previous...
details: https://anonhg.NetBSD.org/src/rev/c0545704c9ee
branches: trunk
changeset: 752694:c0545704c9ee
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Mar 04 08:11:42 2010 +0000
description:
avoid a build error in the previous for !DEBUG kernels.
diffstat:
sys/arch/sparc64/sparc64/pmap.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r 2b6df7d83a18 -r c0545704c9ee sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c Thu Mar 04 08:09:51 2010 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c Thu Mar 04 08:11:42 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.255 2010/03/04 08:01:35 mrg Exp $ */
+/* $NetBSD: pmap.c,v 1.256 2010/03/04 08:11:42 mrg Exp $ */
/*
*
* Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.255 2010/03/04 08:01:35 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.256 2010/03/04 08:11:42 mrg Exp $");
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
#define HWREF
@@ -308,8 +308,8 @@
int pvfirst;
int pvsearch;
} remove_stats;
-#define ENTER_STAT(x) enter_stats.x ++
-#define REMOVE_STAT(x) remove_stats.x ++
+#define ENTER_STAT(x) do { enter_stats.x ++; } while (0)
+#define REMOVE_STAT(x) do { remove_stats.x ++; } while (0)
#define PDB_CREATE 0x000001
#define PDB_DESTROY 0x000002
@@ -339,8 +339,8 @@
#define BDPRINTF(n, f) if (pmapdebug & (n)) prom_printf f
#define DPRINTF(n, f) if (pmapdebug & (n)) printf f
#else
-#define ENTER_STAT(x)
-#define REMOVE_STAT(x)
+#define ENTER_STAT(x) do { /* nothing */ } while (0)
+#define REMOVE_STAT(x) do { /* nothing */ } while (0)
#define BDPRINTF(n, f)
#define DPRINTF(n, f)
#endif
Home |
Main Index |
Thread Index |
Old Index