Fix MCOUNT_ENTER() so it actually compiles in the profiling case.

Pointy hat to:	me
Submitted by:	Danny J. Zerkel <dzerkel@columbus.rr.com>
This commit is contained in:
John Baldwin 2001-07-14 21:40:53 +00:00
parent 8f01c08a34
commit ce11a18f0e
2 changed files with 2 additions and 2 deletions

View File

@ -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); }

View File

@ -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); }