Minimal implementation of cpu_sysctl().
This commit is contained in:
parent
9554615dfb
commit
45eb40e8d3
@ -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 @@ cpu_startup()
|
||||
*(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);
|
||||
}
|
||||
|
@ -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 @@ fuiword(base)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user