Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips cpuwatch_* stuff is #if (MIPS32 + MIPS32R...



details:   https://anonhg.NetBSD.org/src/rev/f49efbf486fb
branches:  trunk
changeset: 764232:f49efbf486fb
user:      cliff <cliff%NetBSD.org@localhost>
date:      Thu Apr 14 06:54:57 2011 +0000

description:
cpuwatch_* stuff is #if (MIPS32 + MIPS32R2 + MIPS64 + MIPS64R2) > 0
now cobalt can build

diffstat:

 sys/arch/mips/mips/cpu_subr.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 73cba83764aa -r f49efbf486fb sys/arch/mips/mips/cpu_subr.c
--- a/sys/arch/mips/mips/cpu_subr.c     Thu Apr 14 06:37:13 2011 +0000
+++ b/sys/arch/mips/mips/cpu_subr.c     Thu Apr 14 06:54:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.8 2011/04/14 05:54:24 cliff Exp $       */
+/*     $NetBSD: cpu_subr.c,v 1.9 2011/04/14 06:54:57 cliff Exp $       */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.8 2011/04/14 05:54:24 cliff Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.9 2011/04/14 06:54:57 cliff Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -1014,6 +1014,8 @@
 }
 
 
+#if (MIPS32 + MIPS32R2 + MIPS64 + MIPS64R2) > 0
+
 #if (CPUWATCH_MAX != 8)
 # error CPUWATCH_MAX
 #endif
@@ -1145,3 +1147,4 @@
        mipsNN_cp0_watchlo_write(cwnum, 0);
 }
 
+#endif /* (MIPS32 + MIPS32R2 + MIPS64 + MIPS64R2) > 0 */



Home | Main Index | Thread Index | Old Index