From: jca Date: Wed, 24 Jan 2024 12:25:50 +0000 (+0000) Subject: Remove atomic_store_64(), misleading and now unused X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=13f2f00f1ba3d96c9c2378993fdf49a200a8c510;p=openbsd Remove atomic_store_64(), misleading and now unused The function was actually performing an OR instead of a store. ok kettenis@ --- diff --git a/sys/arch/riscv64/include/atomic.h b/sys/arch/riscv64/include/atomic.h index fca8aac9552..9dada4e0fd8 100644 --- a/sys/arch/riscv64/include/atomic.h +++ b/sys/arch/riscv64/include/atomic.h @@ -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)