diff options
-rw-r--r-- | sys/arch/sparc64/include/ctlreg.h | 24 |
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");\ |