From ce11a18f0ed0580d3b44067961c8db0718a2e708 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Sat, 14 Jul 2001 21:40:53 +0000 Subject: [PATCH] Fix MCOUNT_ENTER() so it actually compiles in the profiling case. Pointy hat to: me Submitted by: Danny J. Zerkel --- sys/amd64/include/profile.h | 2 +- sys/i386/include/profile.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/include/profile.h b/sys/amd64/include/profile.h index 883daf5ee1d..5f511b3b6a1 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 883daf5ee1d..5f511b3b6a1 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); }