summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2016-03-15 01:17:38 +0000
committersobomax <sobomax@FreeBSD.org>2016-03-15 01:17:38 +0000
commit01b2fd37c124a411a530ceedf51f21dc3466012a (patch)
tree18266534d42a054dfe0458654d6997794d1d416a /sys/mips
parent743cf42b4f88722974a8792a65157a92ef1e4c3a (diff)
downloadFreeBSD-src-01b2fd37c124a411a530ceedf51f21dc3466012a.zip
FreeBSD-src-01b2fd37c124a411a530ceedf51f21dc3466012a.tar.gz
Fix build with HWPMC_HOOKS enabled.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/mips_pic.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/mips/mips/mips_pic.c b/sys/mips/mips/mips_pic.c
index 250f8cf..4e97c41 100644
--- a/sys/mips/mips/mips_pic.c
+++ b/sys/mips/mips/mips_pic.c
@@ -48,6 +48,8 @@ __FBSDID("$FreeBSD$");
#include <sys/mutex.h>
#include <sys/smp.h>
#include <sys/sched.h>
+#include <sys/pmc.h>
+#include <sys/pmckern.h>
#include <machine/bus.h>
#include <machine/hwfunc.h>
@@ -217,8 +219,11 @@ mips_pic_intr(void *arg)
KASSERT(i == 0, ("all interrupts handled"));
#ifdef HWPMC_HOOKS
- if (pmc_hook && (PCPU_GET(curthread)->td_pflags & TDP_CALLCHAIN))
+ if (pmc_hook && (PCPU_GET(curthread)->td_pflags & TDP_CALLCHAIN)) {
+ struct trapframe *tf = PCPU_GET(curthread)->td_intr_frame;
+
pmc_hook(PCPU_GET(curthread), PMC_FN_USER_CALLCHAIN, tf);
+ }
#endif
return (FILTER_HANDLED);
}
OpenPOWER on IntegriCloud