Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh5 Add MD procfs stub for SH5.
details: https://anonhg.NetBSD.org/src/rev/ee0e1376eefe
branches: trunk
changeset: 533996:ee0e1376eefe
user: scw <scw%NetBSD.org@localhost>
date: Fri Jul 12 11:20:12 2002 +0000
description:
Add MD procfs stub for SH5.
diffstat:
sys/arch/sh5/conf/files.sh5 | 4 +++-
sys/arch/sh5/sh5/procfs_machdep.c | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (42 lines):
diff -r de3e29d56e03 -r ee0e1376eefe sys/arch/sh5/conf/files.sh5
--- a/sys/arch/sh5/conf/files.sh5 Fri Jul 12 11:19:08 2002 +0000
+++ b/sys/arch/sh5/conf/files.sh5 Fri Jul 12 11:20:12 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.sh5,v 1.1 2002/07/05 13:31:51 scw Exp $
+# $NetBSD: files.sh5,v 1.2 2002/07/12 11:20:12 scw Exp $
#
@@ -122,6 +122,8 @@
file dev/cons.c
file dev/cninit.c
+file arch/sh5/sh5/procfs_machdep.c procfs
+
file arch/sh5/sh5/in_cksum.c inet
file netinet/in4_cksum.c inet
file netns/ns_cksum.c ns
diff -r de3e29d56e03 -r ee0e1376eefe sys/arch/sh5/sh5/procfs_machdep.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/sh5/sh5/procfs_machdep.c Fri Jul 12 11:20:12 2002 +0000
@@ -0,0 +1,20 @@
+/* $NetBSD: procfs_machdep.c,v 1.1 2002/07/12 11:20:13 scw Exp $ */
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/mount.h>
+#include <sys/vnode.h>
+#include <miscfs/procfs/procfs.h>
+
+
+/*
+ * Linux-style /proc/cpuinfo.
+ * Only used when procfs is mounted with -o linux.
+ */
+int
+procfs_getcpuinfstr(char *buf, int *len)
+{
+ *len = 0;
+
+ return 0;
+}
Home |
Main Index |
Thread Index |
Old Index