Source-Changes-HG archive

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

[src/trunk]: src Add the sysmon device.



details:   https://anonhg.NetBSD.org/src/rev/08728eb14056
branches:  trunk
changeset: 534681:08728eb14056
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu Aug 01 23:18:07 2002 +0000

description:
Add the sysmon device.

diffstat:

 etc/etc.walnut/MAKEDEV        |  15 ++++++++++++++-
 sys/arch/walnut/walnut/conf.c |   7 ++++++-
 2 files changed, 20 insertions(+), 2 deletions(-)

diffs (80 lines):

diff -r 08c589306640 -r 08728eb14056 etc/etc.walnut/MAKEDEV
--- a/etc/etc.walnut/MAKEDEV    Thu Aug 01 23:17:04 2002 +0000
+++ b/etc/etc.walnut/MAKEDEV    Thu Aug 01 23:18:07 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.22 2002/07/10 13:44:19 simonb Exp $
+#      $NetBSD: MAKEDEV,v 1.23 2002/08/01 23:18:44 simonb Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -95,6 +95,7 @@
 #      wsmux*  wscons event multiplexor
 #      systrace syscall tracer
 #      kttcp   kernel ttcp helper
+#      sysmon  System Monitoring hardware
 #
 
 dialin=0
@@ -135,6 +136,7 @@
        makedev clockctl
        makedev systrace
        makedev kttcp
+       makedev sysmon
        ;;
 
 ramdisk)
@@ -549,6 +551,17 @@
        chmod 600 kttcp
        ;;
 
+sysmon)
+       major=62
+       rm -f sysmon
+       mknod sysmon c $major 0
+       chmod 644 sysmon
+
+       rm -f watchdog
+       mknod watchdog c $major 1
+       chmod 644 watchdog
+       ;;
+
 local)
        umask 0
        sh $0.local all
diff -r 08c589306640 -r 08728eb14056 sys/arch/walnut/walnut/conf.c
--- a/sys/arch/walnut/walnut/conf.c     Thu Aug 01 23:17:04 2002 +0000
+++ b/sys/arch/walnut/walnut/conf.c     Thu Aug 01 23:18:07 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.6 2002/07/19 16:38:25 thorpej Exp $ */
+/*     $NetBSD: conf.c,v 1.7 2002/08/01 23:18:07 simonb Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -140,6 +140,9 @@
 #include "kttcp.h"
 cdev_decl(kttcp);
 
+#include <dev/sysmon/sysmonconf.h>
+cdev_decl(sysmon);
+
 struct cdevsw cdevsw[] = {
        cdev_cn_init(1,cn),             /* 0: virtual console */
        cdev_ctty_init(1,ctty),         /* 1: control tty */
@@ -207,6 +210,7 @@
        cdev_notdef(),                  /* 60: system call tracing */
 #endif
        cdev__oci_init(NKTTCP,kttcp),   /* 61: kernel ttcp helper */
+       cdev_sysmon_init(NSYSMON, sysmon), /* 62: System Monitor */
 };
 int nchrdev = sizeof cdevsw / sizeof cdevsw[0];
 
@@ -302,6 +306,7 @@
        /* 59 */        NODEV,
        /* 60 */        NODEV,
        /* 61 */        NODEV,
+       /* 62 */        NODEV,
 };
 
 /*



Home | Main Index | Thread Index | Old Index