diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-11 21:10:15 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2025-02-12 01:09:45 +0100 |
commit | 59ec17828dc4b32ee4d25010280055395ba0f369 (patch) | |
tree | 0a47786efd1df1991003eafcb6380a964bc2d968 | |
parent | 3ed8522bd0fe6e4b06130ec5219ee5775716485b (diff) |
i386 lock: Fix building with MACH_SLOCKS and no SMP
We need the slock initializer in that case.
-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)) \ |