summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-05-02 19:52:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-05-02 19:52:28 +0000
commita7563e3178c9b52bdfa7a38419d8b35c703a0964 (patch)
tree4a2c49e44e9c8ca8abac5fe013dc337e3b2a03f3
parentf735da690fa2c4a697949973217c19547fe3c06e (diff)
Implement rw_cas correctly, unlike previous revision where I was obviously
on drugs; ok kettenis@
-rw-r--r--sys/arch/sparc64/include/lock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/lock.h b/sys/arch/sparc64/include/lock.h
index 7c8d35490a4..a648575a888 100644
--- a/sys/arch/sparc64/include/lock.h
+++ b/sys/arch/sparc64/include/lock.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lock.h,v 1.3 2008/01/01 23:37:16 miod Exp $ */
+/* $OpenBSD: lock.h,v 1.4 2008/05/02 19:52:27 miod Exp $ */
/* public domain */
@@ -51,6 +51,6 @@ __cpu_simple_unlock(__cpu_simple_lock_t *l)
*l = __SIMPLELOCK_UNLOCKED;
}
-#define rw_cas_sparc64 (sparc64_casx(p, o, n) != o)
+#define rw_cas(p, o, n) (sparc64_casx(p, o, n) != o)
#endif /* _SPARC64_LOCK_H_ */