summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-11-28 20:05:31 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-11-28 20:05:31 +0000
commit7ce0ae885ba1db57d76d6bfa9ed38e8718b9fe99 (patch)
tree233a49adc2204cdc3d721ce1565021d1cd1831a6 /sys/arch/sparc64/include
parentb70cafbd9fabe74d3e93a58a83fdee76ecaa6543 (diff)
Garbage collect sparc_cas() and sparc_casx(). We have equivalent functions
in <machine/atomic.h> now and they're not used anywhere in our tree.
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r--sys/arch/sparc64/include/ctlreg.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/arch/sparc64/include/ctlreg.h b/sys/arch/sparc64/include/ctlreg.h
index 87b31b35452..c8ea062cd3e 100644
--- a/sys/arch/sparc64/include/ctlreg.h
+++ b/sys/arch/sparc64/include/ctlreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ctlreg.h,v 1.12 2007/09/03 22:15:40 kettenis Exp $ */
+/* $OpenBSD: ctlreg.h,v 1.13 2007/11/28 20:05:30 kettenis Exp $ */
/* $NetBSD: ctlreg.h,v 1.28 2001/08/06 23:55:34 eeh Exp $ */
/*
@@ -508,28 +508,6 @@
* D$ so we need to flush the D$ to make sure we don't get data pollution.
*/
-extern __inline u_int32_t sparc_cas(u_int32_t *, u_int32_t, u_int32_t);
-extern __inline u_int32_t
-sparc_cas(u_int32_t *rs1, u_int32_t rs2, u_int32_t rd)
-{
- __asm __volatile("casa [%1] ASI_PRIMARY, %2, %0"
- : "+r" (rd)
- : "r" (rs1), "r" (rs2)
- : "memory" );
- return (rd);
-}
-
-extern __inline u_int64_t sparc_casx(u_int64_t *, u_int64_t, u_int64_t);
-extern __inline u_int64_t
-sparc_casx(u_int64_t *rs1, u_int64_t rs2, u_int64_t rd)
-{
- __asm __volatile("casxa [%1] ASI_PRIMARY, %3, %0"
- : "+r" (rd)
- : "r" (rs1), "r" (rs2)
- : "memory" );
- return (rd);
-}
-
#define sparc_membar(mask) do { \
if (mask) \
__asm __volatile("membar %0" : : "n" (mask) : "memory");\