summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include/cpu.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-03-21 22:59:11 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-03-21 22:59:11 +0000
commit1b2f7762abf7ff0d334c325c97ce0024216690f4 (patch)
tree7265c7aa80dbc77ae998c076dac1e9989383714c /sys/arch/sparc64/include/cpu.h
parentbe92a18b19e10f88c3f1ef2e350de4454a45b921 (diff)
install a real handler for correctable ECC errors and make a count of
them available via sysctl (doc update in a bit); ok millert.
Diffstat (limited to 'sys/arch/sparc64/include/cpu.h')
-rw-r--r--sys/arch/sparc64/include/cpu.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h
index 24dacd82711..2f7a606964b 100644
--- a/sys/arch/sparc64/include/cpu.h
+++ b/sys/arch/sparc64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.18 2003/03/20 23:05:30 henric Exp $ */
+/* $OpenBSD: cpu.h,v 1.19 2003/03/21 22:59:09 jason Exp $ */
/* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */
/*
@@ -54,8 +54,10 @@
#define CPU_BOOTED_KERNEL 1 /* string: booted kernel name */
#define CPU_LED_BLINK 2 /* int: blink leds? */
#define CPU_ALLOWAPERTURE 3 /* allow xf86 operations */
-#define CPU_CPUTYPE 4 /* cpu type */
-#define CPU_MAXID 5 /* number of valid machdep ids */
+#define CPU_CPUTYPE 4 /* cpu type */
+#define CPU_CECCERRORS 5 /* Correctable ECC errors */
+#define CPU_CECCLAST 6 /* Correctable ECC last fault addr */
+#define CPU_MAXID 7 /* number of valid machdep ids */
#define CTL_MACHDEP_NAMES { \
{ 0, 0 }, \
@@ -63,6 +65,8 @@
{ "led_blink", CTLTYPE_INT }, \
{ "allowaperture", CTLTYPE_INT }, \
{ "cputype", CTLTYPE_INT }, \
+ { "ceccerrs", CTLTYPE_INT }, \
+ { "cecclast", CTLTYPE_QUAD }, \
}
#ifdef _KERNEL