5 #include <arch/smp/spinlock.h>
8 /* Most GCC versions have a nasty bug with empty initializers */
10 typedef struct { } spinlock_t;
11 #define SPIN_LOCK_UNLOCKED (spinlock_t) { }
13 typedef struct { int gcc_is_buggy; } spinlock_t;
14 #define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 }
17 #define barrier() do {} while(0)
18 #define spin_is_locked(lock) 0
19 #define spin_unlock_wait(lock) do {} while(0)
20 #define spin_lock(lock) do {} while(0)
21 #define spin_unlock(lock) do {} while(0)
24 #endif /* SMP_SPINLOCK_H */