Module Name: src
Committed By: cliff
Date: Thu Apr 14 06:54:58 UTC 2011
Modified Files:
src/sys/arch/mips/mips: cpu_subr.c
Log Message:
cpuwatch_* stuff is #if (MIPS32 + MIPS32R2 + MIPS64 + MIPS64R2) > 0
now cobalt can build
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/mips/mips/cpu_subr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/mips/cpu_subr.c
diff -u src/sys/arch/mips/mips/cpu_subr.c:1.8 src/sys/arch/mips/mips/cpu_subr.c:1.9
--- src/sys/arch/mips/mips/cpu_subr.c:1.8 Thu Apr 14 05:54:24 2011
+++ src/sys/arch/mips/mips/cpu_subr.c Thu Apr 14 06:54:57 2011
@@ -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 */