From nobody Sun Dec 1 04:57:26 2024 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y1F5g1q0rz5gD6R; Sun, 01 Dec 2024 04:57:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y1F5g01q2z49kb; Sun, 1 Dec 2024 04:57:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029047; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LCYgM+j74eEjzbPIbdqI4kfb4mKoS0OnCOF7CEv7qZ4=; b=Z0/eJOPgjSt/uUg8xiME8i81tyMYS1KcN6e7Kso6fMcmlz7rX1xYYKiYVYeNYVZt1+HM8M 7LjlYMECLN0ibEkvnLDOB5tiitsWKBGilCNJWj3F9bF1T029CGkTsE/EXpbZsiZbczMCOx 8eOQ2RARxWlzntpDWLr90JrnJxvH0lBy1HOWOvgMBJ8LwPu3+PcimvxuCbAdfOPoM/zVv8 DlwmbCREqTPESj8h3A6RdexdlseFgBJm2B/7C9dib3vbR59xbYA4KGrsAZb3HZo1E7gZcf swVnW2PBzyHUiNd6EfoHDm776KLm9ACEMsatgnkNAuCNCwOb+7ffiQuanpBy6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029047; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LCYgM+j74eEjzbPIbdqI4kfb4mKoS0OnCOF7CEv7qZ4=; b=uhZG+zqjG7WCCYWH1Q87HU0ZzTZTPU+Hwj6v2SqV6kMXEghvFTD1ZIehtq9zgCHlLCbji5 1oLvTzbHqXhPQyGTbzRpaZUlCm70uZX0ZR+UzUtV1Sas95R1bCwhHN2y6w1qk8/xhi+szk y1bTcIYMjtYjHn/l1tuF1tYg8rTSB7LCGZCGv+e3acF8DMv7KIcuSPqATtjXQIgC/wfIht 1QatccZc31P5R8Q/X59TyiP1volJGWYKbyQZ7lnj+REdRbs0jJhAHfXv5OKnTyO8/KQpHw 43nfaAN9lF45Ow0OuCw0NRwwEbPmfFaQCIz7OVC51KSYcV4Th7IDxQVQVAdpSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733029047; a=rsa-sha256; cv=none; b=srothj9BRbjvvaXG5tdTe++H1czqulNWMnffGePkEwjEwVfD3IZuByv6Yy9OiLWKBINdhW b+3Cpu3jmV0srGl+na2pwGvaYXixh8kLLIaVmrSJsg381s2d9wKukAkdS5nyCIqtsev21T 285PWFOHFva7KACbKaS46FVvjMRmyLDpHN2Hsgtw+3Sjdp4va/D9VpafKD+O6TtjuStmBP BC590pWnpJkq4nhFvjavh3mrla0Ksf4hn250ft3zJiPDatITG09C4iY7muLMoQk8BrKht5 qpraAWRhmrRceokqb2BOvL3Ai81RDibHf7a1AbmUkqutf9q0ylGw5o7T8EXutw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y1F5f6g9yzdn0; Sun, 1 Dec 2024 04:57:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4B14vQnU095951; Sun, 1 Dec 2024 04:57:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B14vQuZ095948; Sun, 1 Dec 2024 04:57:26 GMT (envelope-from git) Date: Sun, 1 Dec 2024 04:57:26 GMT Message-Id: <202412010457.4B14vQuZ095948@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 72b4bd2df77c - stable/14 - arm: add missing atomic-pointer functions List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 72b4bd2df77c52f184bad81dcaaa4851e917e86b Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=72b4bd2df77c52f184bad81dcaaa4851e917e86b commit 72b4bd2df77c52f184bad81dcaaa4851e917e86b Author: Elliott Mitchell AuthorDate: 2024-05-09 23:04:35 +0000 Commit: John Baldwin CommitDate: 2024-12-01 02:46:08 +0000 arm: add missing atomic-pointer functions The pointer function types were missing for these functions, so add them. Valuable for places where type sizes vary by architecture. Differential Revision: https://reviews.freebsd.org/D37778 Reviewed by: imp, andrew Pull Request: https://github.com/freebsd/freebsd-src/pull/1126 (cherry picked from commit 98c276811aece750cd93cec53cd6c8f926519da5) --- sys/arm/include/atomic.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sys/arm/include/atomic.h b/sys/arm/include/atomic.h index d632a6db89df..f39de8eaabdf 100644 --- a/sys/arm/include/atomic.h +++ b/sys/arm/include/atomic.h @@ -1059,6 +1059,12 @@ atomic_thread_fence_seq_cst(void) dmb(); } +#define atomic_add_ptr atomic_add_32 +#define atomic_add_acq_ptr atomic_add_acq_32 +#define atomic_add_rel_ptr atomic_add_rel_32 +#define atomic_subtract_ptr atomic_subtract_32 +#define atomic_subtract_acq_ptr atomic_subtract_acq_32 +#define atomic_subtract_rel_ptr atomic_subtract_rel_32 #define atomic_clear_ptr atomic_clear_32 #define atomic_clear_acq_ptr atomic_clear_acq_32 #define atomic_clear_rel_ptr atomic_clear_rel_32 @@ -1066,15 +1072,16 @@ atomic_thread_fence_seq_cst(void) #define atomic_set_acq_ptr atomic_set_acq_32 #define atomic_set_rel_ptr atomic_set_rel_32 #define atomic_fcmpset_ptr atomic_fcmpset_32 -#define atomic_fcmpset_rel_ptr atomic_fcmpset_rel_32 #define atomic_fcmpset_acq_ptr atomic_fcmpset_acq_32 +#define atomic_fcmpset_rel_ptr atomic_fcmpset_rel_32 #define atomic_cmpset_ptr atomic_cmpset_32 #define atomic_cmpset_acq_ptr atomic_cmpset_acq_32 #define atomic_cmpset_rel_ptr atomic_cmpset_rel_32 +#define atomic_fetchadd_ptr atomic_fetchadd_32 +#define atomic_readandclear_ptr atomic_readandclear_32 #define atomic_load_acq_ptr atomic_load_acq_32 #define atomic_store_rel_ptr atomic_store_rel_32 #define atomic_swap_ptr atomic_swap_32 -#define atomic_readandclear_ptr atomic_readandclear_32 #define atomic_add_int atomic_add_32 #define atomic_add_acq_int atomic_add_acq_32