summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-06-23 02:14:41 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-06-23 02:14:41 +0000
commit29a9d7776db7cbab30bc2d6af24d069b147587f5 (patch)
tree06b99f878537fc01966c36dbcc53fb50804e01e9 /sys/arch/mvme68k
parent7a6687eb64e6597c95207ad1d28b714e510d014c (diff)
remove obsolete vtrace guts; art@
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r--sys/arch/mvme68k/mvme68k/sys_machdep.c60
1 files changed, 1 insertions, 59 deletions
diff --git a/sys/arch/mvme68k/mvme68k/sys_machdep.c b/sys/arch/mvme68k/mvme68k/sys_machdep.c
index 035e2f766a3..39a1841aa86 100644
--- a/sys/arch/mvme68k/mvme68k/sys_machdep.c
+++ b/sys/arch/mvme68k/mvme68k/sys_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_machdep.c,v 1.8 2000/06/08 22:25:21 niklas Exp $ */
+/* $OpenBSD: sys_machdep.c,v 1.9 2000/06/23 02:14:37 mickey Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -46,67 +46,9 @@
#include <sys/kernel.h>
#include <sys/mtio.h>
#include <sys/buf.h>
-#include <sys/trace.h>
#include <vm/vm.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, (void *)p->p_pid, SCARG(uap, value));
- break;
-
- case VTR_STAMP:
- trace(TR_STAMP, SCARG(uap, value), p->p_pid);
- break;
- }
- return (0);
-}
-
-vdoualarm(arg)
-void *arg;
-{
- register int pid = (int)arg;
- register struct proc *p;
-
- p = pfind(pid);
- if (p)
- psignal(p, 16);
- nvualarm--;
-}
-#endif
-
#include <machine/cpu.h>
/* XXX should be in an include file somewhere */