Adapt arc to recent cpu_sysctl() changes on mips ports:

> Merge cpu_sysctl() for all mips ports, based on powerpc and m68k precedent.
>
> For now, only pmax implements CPU_BOOTED_KERNEL.  Need to revisit.
This commit is contained in:
tsutsui 2002-08-30 23:49:27 +00:00
parent 3ffc87a5bb
commit cda9af7bb6
1 changed files with 2 additions and 38 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.68 2002/08/25 20:21:34 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.69 2002/08/30 23:49:27 tsutsui Exp $ */
/* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */
/*
@ -67,7 +67,6 @@
#include <sys/user.h>
#include <sys/exec.h>
#include <uvm/uvm_extern.h>
#include <sys/sysctl.h>
#include <sys/mount.h>
#include <sys/device.h>
#include <sys/syscallargs.h>
@ -126,9 +125,7 @@
#endif /* NCOM */
/* the following is used externally (sysctl_hw) */
char machine[] = MACHINE; /* from <machine/param.h> */
char machine_arch[] = MACHINE_ARCH; /* from <machine/param.h> */
char cpu_model[80];
extern char cpu_model[];
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
@ -595,39 +592,6 @@ cpu_startup()
bufinit();
}
/*
* machine dependent system variables.
*/
int
cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
int *name;
u_int namelen;
void *oldp;
size_t *oldlenp;
void *newp;
size_t newlen;
struct proc *p;
{
dev_t consdev;
/* all sysctl names at this level are terminal */
if (namelen != 1)
return (ENOTDIR); /* overloaded */
switch (name[0]) {
case CPU_CONSDEV:
if (cn_tab != NULL)
consdev = cn_tab->cn_dev;
else
consdev = NODEV;
return (sysctl_rdstruct(oldp, oldlenp, newp, &consdev,
sizeof consdev));
default:
return (EOPNOTSUPP);
}
/* NOTREACHED */
}
int waittime = -1;
struct user dumppcb; /* Actually, struct pcb would do. */