summaryrefslogtreecommitdiff
path: root/lib/libc_r/arch
diff options
context:
space:
mode:
authorDavid Leonard <d@cvs.openbsd.org>1999-01-10 23:00:03 +0000
committerDavid Leonard <d@cvs.openbsd.org>1999-01-10 23:00:03 +0000
commit6227d66abdcfd6fb145a85fa8622342cbbffeaab (patch)
treeb879d2072437ca9f76557547a244553571f02379 /lib/libc_r/arch
parent53dc382d6829fef41f54072178953eeef7dc6919 (diff)
note pathological problem
Diffstat (limited to 'lib/libc_r/arch')
-rw-r--r--lib/libc_r/arch/mips/_atomic_lock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc_r/arch/mips/_atomic_lock.c b/lib/libc_r/arch/mips/_atomic_lock.c
index 6b9760a9e46..18092da4566 100644
--- a/lib/libc_r/arch/mips/_atomic_lock.c
+++ b/lib/libc_r/arch/mips/_atomic_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _atomic_lock.c,v 1.4 1998/12/21 13:03:45 d Exp $ */
+/* $OpenBSD: _atomic_lock.c,v 1.5 1999/01/10 23:00:02 d Exp $ */
/*
* Atomic lock for mips
*/
@@ -25,6 +25,8 @@ _atomic_lock(volatile _spinlock_lock_t *lock)
* Read the lock and tag the cache line with a 'load linked'
* instruction. (Register 17 (LLAddr) will hold the
* physical address of lock for diagnostic purposes);
+ * (Under pathologically heavy swapping, the physaddr may
+ * change! XXX)
*/
__asm__("ll %0, %1" : "=r"(old) : "m"(*lock));
if (old != _SPINLOCK_UNLOCKED)