Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Add machdep.fpu_present sysctl node



details:   https://anonhg.NetBSD.org/src/rev/b0b12525066f
branches:  trunk
changeset: 346365:b0b12525066f
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jul 11 01:50:17 2016 +0000

description:
Add machdep.fpu_present sysctl node

diffstat:

 sys/arch/mips/mips/mips_machdep.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 26c2b029998f -r b0b12525066f sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Sun Jul 10 21:40:45 2016 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Mon Jul 11 01:50:17 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.269 2015/06/11 15:48:57 matt Exp $  */
+/*     $NetBSD: mips_machdep.c,v 1.270 2016/07/11 01:50:17 matt Exp $  */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.269 2015/06/11 15:48:57 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.270 2016/07/11 01:50:17 matt Exp $");
 
 #define __INTR_PRIVATE
 #include "opt_cputype.h"
@@ -1719,6 +1719,16 @@
                       NULL, MIPS_HAS_LMMI, NULL, 0,
                       CTL_MACHDEP, CPU_LMMI, CTL_EOL);
 #endif
+       sysctl_createv(clog, 0, NULL, NULL,
+                      CTLFLAG_PERMANENT|CTLFLAG_IMMEDIATE,
+                       CTLTYPE_INT, "fpu_present", NULL,
+                       NULL,
+#ifdef NOFPU
+                      0,
+#else
+                      1,
+#endif
+                      NULL, 0, CTL_MACHDEP, CTL_CREATE, CTL_EOL);
 }
 
 /*



Home | Main Index | Thread Index | Old Index