From nobody Thu May 09 23:20:49 2024 X-Original-To: dev-commits-src-all@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 4Vb7Kt0HWFz5KGSp; Thu, 09 May 2024 23:20:50 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vb7Ks4fgvz44HB; Thu, 9 May 2024 23:20:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715296849; 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=Yu+8grKTCq8H/18lKTCJRO3h0S+i04WSArtlOrua2iY=; b=Bl5f5oEn/M/MI/S+WL09Yz969WfLAUN+VR+InnFUL80gQvp4bKWlvmaTUeg0tIWaz/uVoV Nom1KbePVUSN0DTIq+aSb7DUejCmKbGR4s2rL8THy2DTuk0sGf/oTZZWbDgPawkk/2Ee5p b50ZOFGKeqlxFZUBExiB0QAGb00KscnehD2huxdPefqunQ6ukdIPesEtPsp1dm7EsXCb6H zSzmoSM/PbycPfxqrL41vEfvXgJDS4gxb4XVJ6nFbWjTFWlKZEUNLu3t1T7al86As7GwXE 9Gn74ZCu00oXQFKYZ6lcYYx0ioCj5nN7h/u/EaiGh1o02xV+orL06aNvL3kGsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715296849; a=rsa-sha256; cv=none; b=pGGCjxF3glLm1O0MTs7T+d+e27eJmptVtqC1ZCwZZjKP0RFN+hUacr+PFcz9cvDl3jBYme lmhvKklSDKOWMqNVxq9xe0NZZVF231f8NYH4ztwSbdnLMvwU9YY4sNhVcPFpoNghkTIPo7 B4uCQYOGLzPVzn7v4Pc9nT8Xx7w+LRL1QRTHBXq8JATv1it6WFP+XcKsIg5K5KpkeXRnh/ q5sP8gieoJsPQe8KpU6na3p6L6fzekO3iBt7ql8YD0jSyo5wjK4QBDGTyB2kizk9LVsrtD 3PuPBc6TTEGilqG6xP17Zmjx8noDFk4e/Gf0P4LR4PgXa56H5Ls2X+x5ZnMnzg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715296849; 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=Yu+8grKTCq8H/18lKTCJRO3h0S+i04WSArtlOrua2iY=; b=a/ejxRADooz1sF9DwDp+wuGxooFmZfBjGg+ZemSjU6yG7M/K7YVyngu/H8owTEI7y9zeE/ rizSN/GDAqJITf/HWBuhlwtwz3BKJDkBXCy170g3DZ65lqK4zzd/3g7MmKu5W08jnh2PxW oXSQtVxvGkcO0ZBf/v97jdIfOoNT6Opl9gYayQYFpS6U4bmuLSIFBUpReKBLDaNOpY2GSs f4phQHCb9YkUQdO01NB5I/PNYdnXa+F2d9bFTt46kpt/HDJiWgmWhJJuQdS1u5zMKz/hdP QUUINWNa4bPDL+J1bxtalfnT0K7CvoF2ybj76jWgwSp3AXAHGuegB/natFtnbw== 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 4Vb7Ks49dYz1Rxl; Thu, 9 May 2024 23:20:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 449NKn7I057750; Thu, 9 May 2024 23:20:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 449NKnZk057747; Thu, 9 May 2024 23:20:49 GMT (envelope-from git) Date: Thu, 9 May 2024 23:20:49 GMT Message-Id: <202405092320.449NKnZk057747@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 98c276811aec - main - arm: add missing atomic-pointer functions List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 98c276811aece750cd93cec53cd6c8f926519da5 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=98c276811aece750cd93cec53cd6c8f926519da5 commit 98c276811aece750cd93cec53cd6c8f926519da5 Author: Elliott Mitchell AuthorDate: 2024-05-09 23:04:35 +0000 Commit: Warner Losh CommitDate: 2024-05-09 23:14:59 +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 --- 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 2cf97017b04a..88b5bd7acbc5 100644 --- a/sys/arm/include/atomic.h +++ b/sys/arm/include/atomic.h @@ -1052,6 +1052,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 @@ -1059,15 +1065,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