diff options
-rw-r--r-- | i386/i386/lock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i386/i386/lock.h b/i386/i386/lock.h index b325ae0d..0384536a 100644 --- a/i386/i386/lock.h +++ b/i386/i386/lock.h @@ -29,6 +29,9 @@ #ifndef _I386_LOCK_H_ #define _I386_LOCK_H_ +#define SIMPLE_LOCK_INITIALIZER(l) \ + {.lock_data = 0} + #if NCPUS > 1 #include <i386/smp.h> @@ -56,9 +59,6 @@ #define simple_lock_init(l) \ ((l)->lock_data = 0) -#define SIMPLE_LOCK_INITIALIZER(l) \ - {.lock_data = 0} - #define _simple_lock(l) \ ({ \ while(_simple_lock_xchg_(l, 1)) \ |