diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-25 10:42:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-25 10:42:22 -0400 |
commit | cf025109e879294f4c6aecf94de1e7b592a9fb07 (patch) | |
tree | 05758cc7548b82c3b5d5641439f2a20480475bb1 /include | |
parent | edec231a8a652384cb6d61e648338aa5155f2b72 (diff) | |
parent | 9a59c1860d01b3dea9ab01d5cefb9d5c52042e6d (diff) |
Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6.git
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-sparc/mxcc.h | 4 | ||||
-rw-r--r-- | include/asm-sparc64/spinlock.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-sparc/mxcc.h b/include/asm-sparc/mxcc.h index efe4e843122d..60ef9d6fe7bc 100644 --- a/include/asm-sparc/mxcc.h +++ b/include/asm-sparc/mxcc.h | |||
@@ -115,8 +115,8 @@ extern __inline__ unsigned long mxcc_get_creg(void) | |||
115 | { | 115 | { |
116 | unsigned long mxcc_control; | 116 | unsigned long mxcc_control; |
117 | 117 | ||
118 | __asm__ __volatile__("set -1, %%g2\n\t" | 118 | __asm__ __volatile__("set 0xffffffff, %%g2\n\t" |
119 | "set -1, %%g3\n\t" | 119 | "set 0xffffffff, %%g3\n\t" |
120 | "stda %%g2, [%1] %2\n\t" | 120 | "stda %%g2, [%1] %2\n\t" |
121 | "lda [%3] %2, %0\n\t" : | 121 | "lda [%3] %2, %0\n\t" : |
122 | "=r" (mxcc_control) : | 122 | "=r" (mxcc_control) : |
diff --git a/include/asm-sparc64/spinlock.h b/include/asm-sparc64/spinlock.h index d1f91a4f24ae..db7581bdb531 100644 --- a/include/asm-sparc64/spinlock.h +++ b/include/asm-sparc64/spinlock.h | |||
@@ -44,7 +44,7 @@ typedef struct { | |||
44 | 44 | ||
45 | #define spin_unlock_wait(lp) \ | 45 | #define spin_unlock_wait(lp) \ |
46 | do { membar("#LoadLoad"); \ | 46 | do { membar("#LoadLoad"); \ |
47 | } while(lp->lock) | 47 | } while((lp)->lock) |
48 | 48 | ||
49 | static inline void _raw_spin_lock(spinlock_t *lock) | 49 | static inline void _raw_spin_lock(spinlock_t *lock) |
50 | { | 50 | { |
@@ -149,7 +149,7 @@ typedef struct { | |||
149 | unsigned int break_lock; | 149 | unsigned int break_lock; |
150 | #endif | 150 | #endif |
151 | } rwlock_t; | 151 | } rwlock_t; |
152 | #define RW_LOCK_UNLOCKED {0,} | 152 | #define RW_LOCK_UNLOCKED (rwlock_t) {0,} |
153 | #define rwlock_init(lp) do { *(lp) = RW_LOCK_UNLOCKED; } while(0) | 153 | #define rwlock_init(lp) do { *(lp) = RW_LOCK_UNLOCKED; } while(0) |
154 | 154 | ||
155 | static void inline __read_lock(rwlock_t *lock) | 155 | static void inline __read_lock(rwlock_t *lock) |