summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-03-22 21:10:30 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-03-22 21:10:30 +0000
commit3c6f9968d7697098e3bb739e4db6c68987719be4 (patch)
treedc15340c663d8d7240b1d6d16347b75a0a9fe937 /sys/arch/sparc64/include
parent8bcea748342c762f9f9a5b2dbd961a3e4843ea04 (diff)
Reintroduce the cputyp variable, and use it to distinguish between sun4u and
sun4v.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/param.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/param.h b/sys/arch/sparc64/include/param.h
index 07e9d24c34e..77dddc430fc 100644
--- a/sys/arch/sparc64/include/param.h
+++ b/sys/arch/sparc64/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.29 2007/10/27 22:20:16 martin Exp $ */
+/* $OpenBSD: param.h,v 1.30 2008/03/22 21:10:28 kettenis Exp $ */
/* $NetBSD: param.h,v 1.25 2001/05/30 12:28:51 mrg Exp $ */
/*
@@ -188,6 +188,16 @@
extern void delay(unsigned int);
#define DELAY(n) delay(n)
+extern int cputyp;
+
+#ifdef SUN4V
+#define CPU_ISSUN4V (cputyp == CPU_SUN4V)
+#define CPU_ISSUN4U (cputyp == CPU_SUN4U)
+#else
+#define CPU_ISSUN4V (0)
+#define CPU_ISSUN4U (1)
+#endif
+
#endif /* _LOCORE */
#endif /* _KERNEL */
@@ -198,6 +208,7 @@ extern void delay(unsigned int);
#define CPU_SUN4C 1
#define CPU_SUN4M 2
#define CPU_SUN4U 3
+#define CPU_SUN4V 4
/*
* On a sun4u machine, the page size is 8192.