summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/include/profile.h1
-rw-r--r--sys/i386/include/profile.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h
index 82ff6030b608..bd8a7da017a9 100644
--- a/sys/amd64/include/profile.h
+++ b/sys/amd64/include/profile.h
@@ -64,6 +64,7 @@
#else
#define MCOUNT_DECL(s) u_long s;
#ifdef SMP
+extern int mcount_lock;
#define MCOUNT_ENTER(s) { s = read_eflags(); disable_intr(); \
while (!atomic_cmpset_acq_int(&mcount_lock, 0, 1)) \
/* nothing */ ; }
diff --git a/sys/i386/include/profile.h b/sys/i386/include/profile.h
index 82ff6030b608..bd8a7da017a9 100644
--- a/sys/i386/include/profile.h
+++ b/sys/i386/include/profile.h
@@ -64,6 +64,7 @@
#else
#define MCOUNT_DECL(s) u_long s;
#ifdef SMP
+extern int mcount_lock;
#define MCOUNT_ENTER(s) { s = read_eflags(); disable_intr(); \
while (!atomic_cmpset_acq_int(&mcount_lock, 0, 1)) \
/* nothing */ ; }