summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-01-13 20:20:30 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-01-13 20:20:30 +0000
commitdbe2b9af311c7e4f0eab402a7cc948a3d2206c91 (patch)
tree56f10666e506451e007723746efa7ff073440bd7 /sys/arch/m88k
parent03bf653387a8bf3c826b11ba4985b2e3a1df669d (diff)
Add a machdep.cputype sysctl, which returns the processor type (0 for 88100,
1 for 88110), for userland to have an easy way to figure out.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/include/cpu.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/m88k/include/cpu.h b/sys/arch/m88k/include/cpu.h
index 29e266e5b22..aa3acd6438b 100644
--- a/sys/arch/m88k/include/cpu.h
+++ b/sys/arch/m88k/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.33 2007/12/15 19:34:33 miod Exp $ */
+/* $OpenBSD: cpu.h,v 1.34 2008/01/13 20:20:29 miod Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* Copyright (c) 1992, 1993
@@ -45,11 +45,13 @@
* CTL_MACHDEP definitions.
*/
#define CPU_CONSDEV 1 /* dev_t: console terminal device */
-#define CPU_MAXID 2 /* number of valid machdep ids */
+#define CPU_CPUTYPE 2 /* int: cpu type */
+#define CPU_MAXID 3 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
{ "console_device", CTLTYPE_STRUCT }, \
+ { "cputype", CTLTYPE_INT }, \
}
#ifdef _KERNEL