Add support to run SMM handler in TSEG instead of ASEG
[coreboot.git] / src / include / smp / spinlock.h
1 #ifndef SMP_SPINLOCK_H
2 #define SMP_SPINLOCK_H
3
4 #if CONFIG_SMP == 1
5 #include <arch/smp/spinlock.h>
6 #else /* !CONFIG_SMP */
7
8 #define DECLARE_SPIN_LOCK(x)
9 #define barrier()               do {} while(0)
10 #define spin_is_locked(lock)    0
11 #define spin_unlock_wait(lock)  do {} while(0)
12 #define spin_lock(lock)         do {} while(0)
13 #define spin_unlock(lock)       do {} while(0)
14 #define cpu_relax()             do {} while(0)
15 #endif
16
17 #endif /* SMP_SPINLOCK_H */