Remove atomic_store_64(), misleading and now unused
authorjca <jca@openbsd.org>
Wed, 24 Jan 2024 12:25:50 +0000 (12:25 +0000)
committerjca <jca@openbsd.org>
Wed, 24 Jan 2024 12:25:50 +0000 (12:25 +0000)
The function was actually performing an OR instead of a store.

ok kettenis@

sys/arch/riscv64/include/atomic.h

index fca8aac..9dada4e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: atomic.h,v 1.4 2022/08/29 02:01:18 jsg Exp $  */
+/*     $OpenBSD: atomic.h,v 1.5 2024/01/24 12:25:50 jca Exp $  */
 
 /* Public Domain */
 
@@ -33,15 +33,6 @@ atomic_setbits_int(volatile unsigned int *p, unsigned int v)
                        : "memory");
 }
 
-static inline void
-atomic_store_64(volatile uint64_t *p, uint64_t v)
-{
-       __asm volatile("amoor.d zero, %1, %0"
-                       : "+A" (*p)
-                       : "r" (v)
-                       : "memory");
-}
-
 /*
  * Clear bits
  * *p = *p & (~v)