summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-08-01 15:43:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-08-01 15:43:13 +0000
commit8adf1d178eadaf66e76e0cbe9486f2724cf868cb (patch)
tree4323cff94aa1746fa09167541afe0ad2cc3b2221 /sys/arch/mips64
parent74ce77dc91600edc94c95e9caa8f22903047c0a1 (diff)
Remoe unused vtrace stuff; ok deraadt@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/sys_machdep.c60
1 files changed, 1 insertions, 59 deletions
diff --git a/sys/arch/mips64/mips64/sys_machdep.c b/sys/arch/mips64/mips64/sys_machdep.c
index 52a529772b5..c3c71dbeaa8 100644
--- a/sys/arch/mips64/mips64/sys_machdep.c
+++ b/sys/arch/mips64/mips64/sys_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_machdep.c,v 1.1 2004/08/06 20:56:03 pefo Exp $ */
+/* $OpenBSD: sys_machdep.c,v 1.2 2005/08/01 15:43:12 miod Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -44,70 +44,12 @@
#include <sys/file.h>
#include <sys/time.h>
#include <sys/proc.h>
-#include <sys/uio.h>
#include <sys/kernel.h>
-#include <sys/mtio.h>
#include <sys/buf.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
-#ifdef TRACE
-int nvualarm;
-
-vtrace(p, uap, retval)
- struct proc *p;
- register struct vtrace_args /* {
- syscallarg(int) request;
- syscallarg(int) value;
- } */ *uap;
- register_t *retval;
-{
- int vdoualarm();
-
- switch (SCARG(uap, request)) {
-
- case VTR_DISABLE: /* disable a trace point */
- case VTR_ENABLE: /* enable a trace point */
- if (SCARG(uap, value) < 0 || SCARG(uap, value) >= TR_NFLAGS)
- return (EINVAL);
- *retval = traceflags[SCARG(uap, value)];
- traceflags[SCARG(uap, value)] = SCARG(uap, request);
- break;
-
- case VTR_VALUE: /* return a trace point setting */
- if (SCARG(uap, value) < 0 || SCARG(uap, value) >= TR_NFLAGS)
- return (EINVAL);
- *retval = traceflags[SCARG(uap, value)];
- break;
-
- case VTR_UALARM: /* set a real-time ualarm, less than 1 min */
- if (SCARG(uap, value) <= 0 || SCARG(uap, value) > 60 * hz ||
- nvualarm > 5)
- return (EINVAL);
- nvualarm++;
- timeout(vdoualarm, (caddr_t)p->p_pid, SCARG(uap, value));
- break;
-
- case VTR_STAMP:
- trace(TR_STAMP, SCARG(uap, value), p->p_pid);
- break;
- }
- return (0);
-}
-
-vdoualarm(arg)
- int arg;
-{
- register struct proc *p;
-
- p = pfind(arg);
- if (p)
- psignal(p, 16);
- nvualarm--;
-}
-#endif
-
int
sys_sysarch(p, v, retval)
struct proc *p;