mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[IA64] Fix spinlock initializer.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
1 parent
2e53497808
commit
a07e2229ff
1 file changed
+12
@@ -33,8 +33,20 @@ typedef struct {
|
||||
#endif
|
||||
} spinlock_t;
|
||||
|
||||
#ifdef XEN
|
||||
#ifdef DEBUG_SPINLOCK
|
||||
#define SPIN_LOCK_UNLOCKED /*(spinlock_t)*/ { 0, NULL, -1, 0 }
|
||||
#else
|
||||
#define SPIN_LOCK_UNLOCKED /*(spinlock_t)*/ { 0, -1, 0 }
|
||||
#endif
|
||||
static inline void spin_lock_init(spinlock_t *lock)
|
||||
{
|
||||
*lock = ((spinlock_t)SPIN_LOCK_UNLOCKED);
|
||||
}
|
||||
#else
|
||||
#define SPIN_LOCK_UNLOCKED /*(spinlock_t)*/ { 0 }
|
||||
#define spin_lock_init(x) ((x)->lock = 0)
|
||||
#endif
|
||||
|
||||
#ifdef ASM_SUPPORTED
|
||||
/*
|
||||
|
||||