Module Name: src
Committed By: mrg
Date: Thu May 12 05:41:50 UTC 2011
Modified Files:
src/sys/arch/sparc64/include: param.h
Log Message:
first steps towards fujitsu SPARC64 support:
- add CPU_SUN4US and CPU_SUN4V defines
- re-introduce "cputyp" and use it for sun4u/sun4us/sun4v
To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/sparc64/include/param.h
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/sparc64/include/param.h
diff -u src/sys/arch/sparc64/include/param.h:1.44 src/sys/arch/sparc64/include/param.h:1.45
--- src/sys/arch/sparc64/include/param.h:1.44 Mon Feb 8 19:02:32 2010
+++ src/sys/arch/sparc64/include/param.h Thu May 12 05:41:50 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.44 2010/02/08 19:02:32 joerg Exp $ */
+/* $NetBSD: param.h,v 1.45 2011/05/12 05:41:50 mrg Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -230,6 +230,10 @@
extern int cputyp;
+#define CPU_ISSUN4U (cputyp == CPU_SUN4U)
+#define CPU_ISSUN4US (cputyp == CPU_SUN4US)
+#define CPU_ISSUN4V (cputyp == CPU_SUN4V)
+
#endif /* _LOCORE */
#endif /* _KERNEL */
@@ -240,6 +244,8 @@
#define CPU_SUN4C 1
#define CPU_SUN4M 2
#define CPU_SUN4U 3
+#define CPU_SUN4US 4
+#define CPU_SUN4V 5
/*
* Shorthand CPU-type macros. Enumerate all eight cases.
@@ -255,7 +261,6 @@
* extra memory references they'll generate.
*/
-#define CPU_ISSUN4U (1)
#define CPU_ISSUN4M (0)
#define CPU_ISSUN4C (0)
#define CPU_ISSUN4 (0)