Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm26/arm26 Minimal implementation of cpu_sysctl().
details: https://anonhg.NetBSD.org/src/rev/d766888d09de
branches: trunk
changeset: 509209:d766888d09de
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sun Apr 29 15:13:45 2001 +0000
description:
Minimal implementation of cpu_sysctl().
diffstat:
sys/arch/arm26/arm26/machdep.c | 20 ++++++++++++++++++--
sys/arch/arm26/arm26/stubs.c | 15 ++-------------
2 files changed, 20 insertions(+), 15 deletions(-)
diffs (73 lines):
diff -r d14ad69276b2 -r d766888d09de sys/arch/arm26/arm26/machdep.c
--- a/sys/arch/arm26/arm26/machdep.c Sun Apr 29 12:48:12 2001 +0000
+++ b/sys/arch/arm26/arm26/machdep.c Sun Apr 29 15:13:45 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.8 2001/04/24 04:30:53 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.9 2001/04/29 15:13:45 bjh21 Exp $ */
/*-
* Copyright (c) 1998 Ben Harris
@@ -33,7 +33,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.8 2001/04/24 04:30:53 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.9 2001/04/29 15:13:45 bjh21 Exp $");
#include <sys/buf.h>
#include <sys/mbuf.h>
@@ -208,3 +208,19 @@
*(volatile int *)(0x10000000) = 0; /* address exception */
#endif
}
+
+/*
+ * machine dependent system variables.
+ */
+
+int
+cpu_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
+ size_t newlen, struct proc *p)
+{
+
+ /* all sysctl names at this level are terminal */
+ if (namelen != 1)
+ return (ENOTDIR); /* overloaded */
+
+ return (EOPNOTSUPP);
+}
diff -r d14ad69276b2 -r d766888d09de sys/arch/arm26/arm26/stubs.c
--- a/sys/arch/arm26/arm26/stubs.c Sun Apr 29 12:48:12 2001 +0000
+++ b/sys/arch/arm26/arm26/stubs.c Sun Apr 29 15:13:45 2001 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: stubs.c,v 1.7 2001/02/13 22:54:26 bjh21 Exp $ */
+/* $NetBSD: stubs.c,v 1.8 2001/04/29 15:13:45 bjh21 Exp $ */
/*
* stubs.c -- functions I haven't written yet
*/
#include <sys/param.h>
-__RCSID("$NetBSD: stubs.c,v 1.7 2001/02/13 22:54:26 bjh21 Exp $");
+__RCSID("$NetBSD: stubs.c,v 1.8 2001/04/29 15:13:45 bjh21 Exp $");
#include <sys/kernel.h>
#include <sys/systm.h>
@@ -93,17 +93,6 @@
panic("fuiword not implemented");
}
-int
-cpu_sysctl(name, namelen, oldval, oldlenp, newval, newlen, p)
- int *name;
- u_int namelen;
- void *oldval, *newval;
- size_t *oldlenp, newlen;
- struct proc *p;
-{
- panic("cpu_sysctl not implemented");
-}
-
void
pagemove(foo, bar, len)
caddr_t foo, bar;
Home |
Main Index |
Thread Index |
Old Index