summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-14 23:15:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-14 23:15:51 +0000
commit15c79903aa9d47dfaeb292a5b97ec11393b6a16a (patch)
treedafbbc053298506963d9521e423ca0710f03627f /sys/arch
parentabf14e9a2ac34d22bbb82ce5364875f0d48419ad (diff)
put sub-class of architecture in SVR4_SI_PLATFORM
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/sparc/cpu.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/sys/arch/sparc/sparc/cpu.c b/sys/arch/sparc/sparc/cpu.c
index ae45a93ded0..1e378842d1e 100644
--- a/sys/arch/sparc/sparc/cpu.c
+++ b/sys/arch/sparc/sparc/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.17 1999/03/03 21:58:28 jason Exp $ */
+/* $OpenBSD: cpu.c,v 1.18 1999/07/14 23:15:49 deraadt Exp $ */
/* $NetBSD: cpu.c,v 1.56 1997/09/15 20:52:36 pk Exp $ */
/*
@@ -75,6 +75,7 @@
/* The following are used externally (sysctl_hw). */
char machine[] = MACHINE; /* from <machine/param.h> */
char machine_arch[] = MACHINE_ARCH; /* from <machine/param.h> */
+char *cpu_class = "sun4";
char cpu_model[130];
char cpu_hotfix[40];
extern char mainbus_model[]; /* from autoconf.c */
@@ -193,6 +194,21 @@ cpu_attach(parent, self, aux)
bcopy(&cpuinfo, sc, sizeof(cpuinfo));
}
+#if defined(SUN4C) || defined(SUN4M)
+ switch (cputyp) {
+#if defined(SUN4C)
+ case CPU_SUN4C:
+ cpu_class = "sun4c";
+ break;
+#endif /* defined(SUN4C) */
+#if defined(SUN4M)
+ case CPU_SUN4M:
+ cpu_class = "sun4m";
+ break;
+#endif /* defined(SUN4M) */
+ }
+#endif /* defined(SUN4C) || defined(SUN4M) */
+
getcpuinfo(sc, node);
fpuname = "no";