summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-07-14 21:40:53 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-07-14 21:40:53 +0000
commitce11a18f0ed0580d3b44067961c8db0718a2e708 (patch)
tree7803ea6c3bd1b430a0ff25c6982c9ff13ff08d41
parent8f01c08a348e44da24f0b717161768c99ef2bb82 (diff)
Notes
-rw-r--r--sys/amd64/include/profile.h2
-rw-r--r--sys/i386/include/profile.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h
index 883daf5ee1db..5f511b3b6a16 100644
--- a/sys/amd64/include/profile.h
+++ b/sys/amd64/include/profile.h
@@ -65,7 +65,7 @@
#define MCOUNT_DECL(s) u_long s;
#ifdef SMP
#define MCOUNT_ENTER(s) { s = read_eflags(); disable_intr(); \
- while (!atomic_cmpset_acq_int(&mcount_lock, 0, 1) \
+ while (!atomic_cmpset_acq_int(&mcount_lock, 0, 1)) \
/* nothing */ ; }
#define MCOUNT_EXIT(s) { atomic_store_rel_int(&mcount_lock, 0); \
write_eflags(s); }
diff --git a/sys/i386/include/profile.h b/sys/i386/include/profile.h
index 883daf5ee1db..5f511b3b6a16 100644
--- a/sys/i386/include/profile.h
+++ b/sys/i386/include/profile.h
@@ -65,7 +65,7 @@
#define MCOUNT_DECL(s) u_long s;
#ifdef SMP
#define MCOUNT_ENTER(s) { s = read_eflags(); disable_intr(); \
- while (!atomic_cmpset_acq_int(&mcount_lock, 0, 1) \
+ while (!atomic_cmpset_acq_int(&mcount_lock, 0, 1)) \
/* nothing */ ; }
#define MCOUNT_EXIT(s) { atomic_store_rel_int(&mcount_lock, 0); \
write_eflags(s); }