summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2007-11-28 20:05:30 +0000
committerkettenis <kettenis@openbsd.org>2007-11-28 20:05:30 +0000
commit7092f43cafb8a1141a2de7d162c52235da9d02b4 (patch)
treefacdf25d16a10c673b40504fbee144edf0c5b099 /sys
parentDon't complain about removing wired pages; this is expected to happen with (diff)
downloadwireguard-openbsd-7092f43cafb8a1141a2de7d162c52235da9d02b4.tar.xz
wireguard-openbsd-7092f43cafb8a1141a2de7d162c52235da9d02b4.zip
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')
-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");\