diff options
author | markj <markj@FreeBSD.org> | 2014-12-23 15:38:19 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2014-12-23 15:38:19 +0000 |
commit | 7ea63e4fb49b9fd6e09141a3b07ab5137e249a08 (patch) | |
tree | d6778eb5fb483953bf06a32dbffc3c9ff0294312 /sys/cddl/dev/dtrace/mips/dtrace_subr.c | |
parent | 5130d48f9c63ccf0aa81c3b9272eb734601d088e (diff) | |
download | FreeBSD-src-7ea63e4fb49b9fd6e09141a3b07ab5137e249a08.zip FreeBSD-src-7ea63e4fb49b9fd6e09141a3b07ab5137e249a08.tar.gz |
Restore the trap type argument to the DTrace trap hook, removed in r268600.
It's redundant at the moment since it can be obtained from the trapframe
on the architectures where DTrace is supported, but this won't be the case
with ARM.
Diffstat (limited to 'sys/cddl/dev/dtrace/mips/dtrace_subr.c')
-rw-r--r-- | sys/cddl/dev/dtrace/mips/dtrace_subr.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/cddl/dev/dtrace/mips/dtrace_subr.c b/sys/cddl/dev/dtrace/mips/dtrace_subr.c index 5565a61..4f13b98 100644 --- a/sys/cddl/dev/dtrace/mips/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/mips/dtrace_subr.c @@ -137,11 +137,8 @@ dtrace_gethrestime(void) /* Function to handle DTrace traps during probes. See amd64/amd64/trap.c */ int -dtrace_trap(struct trapframe *frame) +dtrace_trap(struct trapframe *frame, u_int type) { - u_int type; - - type = (trapframe->cause & MIPS_CR_EXC_CODE) >> MIPS_CR_EXC_CODE_SHIFT; /* * A trap can occur while DTrace executes a probe. Before |