summaryrefslogtreecommitdiffstats
path: root/sys/dev/hwpmc
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2015-03-27 08:47:16 +0000
committerbz <bz@FreeBSD.org>2015-03-27 08:47:16 +0000
commit96329446586b235e6df5def10db501060389afc5 (patch)
tree3a5666453522602a6857b111b11ea1632b206e8f /sys/dev/hwpmc
parent4fddf178d36e289e4f614f548d276ddf2bd98409 (diff)
downloadFreeBSD-src-96329446586b235e6df5def10db501060389afc5.zip
FreeBSD-src-96329446586b235e6df5def10db501060389afc5.tar.gz
Rather than defining our own magic checks here use INKERNEL() for
the PMC_IN_KERNEL() macro definition. Add missing macros to extract the return address (LR) from the trapframe. Discussed with: andrew Obtained from: Cambridge/L41 Sponsored by: DARPA, AFRL MFC after: 2 weeks
Diffstat (limited to 'sys/dev/hwpmc')
-rw-r--r--sys/dev/hwpmc/hwpmc_arm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/hwpmc/hwpmc_arm.c b/sys/dev/hwpmc/hwpmc_arm.c
index 492695a..a2a25a9 100644
--- a/sys/dev/hwpmc/hwpmc_arm.c
+++ b/sys/dev/hwpmc/hwpmc_arm.c
@@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
#include <machine/cpu.h>
#include <machine/md_var.h>
#include <machine/pmc_mdep.h>
+#include <machine/stack.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
OpenPOWER on IntegriCloud