summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-01-25 00:41:46 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-01-25 00:41:46 +0000
commit0f97d827ea8e502fb0ea135c4fa8e638908dbd85 (patch)
tree79d9648795409737359c4a57ff1b3287c6e7b6c9 /include/asm-mips64
parent7f99dfeb7ae11a3f05aae5d753b8689c8daaef8c (diff)
Add memory clobbers.
Diffstat (limited to 'include/asm-mips64')
-rw-r--r--include/asm-mips64/spinlock.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/asm-mips64/spinlock.h b/include/asm-mips64/spinlock.h
index 36e7c974d..4651343e9 100644
--- a/include/asm-mips64/spinlock.h
+++ b/include/asm-mips64/spinlock.h
@@ -1,4 +1,4 @@
-/* $Id$
+/* $Id: spinlock.h,v 1.3 2000/01/23 21:15:52 ralf Exp $
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
@@ -46,7 +46,8 @@ static inline void spin_lock(spinlock_t *lock)
" sync\n\t"
".set\treorder"
: "=o" (__dummy_lock(lock)), "=&r" (tmp)
- : "o" (__dummy_lock(lock)));
+ : "o" (__dummy_lock(lock))
+ : "memory");
}
static inline void spin_unlock(spinlock_t *lock)
@@ -92,7 +93,8 @@ static inline void read_lock(rwlock_t *rw)
" sync\n\t"
".set\treorder"
: "=o" (__dummy_lock(rw)), "=&r" (tmp)
- : "o" (__dummy_lock(rw)));
+ : "o" (__dummy_lock(rw))
+ : "memory");
}
/* Note the use of sub, not subu which will make the kernel die with an
@@ -110,7 +112,8 @@ static inline void read_unlock(rwlock_t *rw)
"beqz\t%1, 1b\n\t"
".set\treorder"
: "=o" (__dummy_lock(rw)), "=&r" (tmp)
- : "o" (__dummy_lock(rw)));
+ : "o" (__dummy_lock(rw))
+ : "memory");
}
static inline void write_lock(rwlock_t *rw)
@@ -127,7 +130,8 @@ static inline void write_lock(rwlock_t *rw)
" sync\n\t"
".set\treorder"
: "=o" (__dummy_lock(rw)), "=&r" (tmp)
- : "o" (__dummy_lock(rw)));
+ : "o" (__dummy_lock(rw))
+ : "memory");
}
static inline void write_unlock(rwlock_t *rw)