From nobody Mon Apr 4 11:05:56 2022 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 413441A97182; Mon, 4 Apr 2022 11:05:57 +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 4KX7HT1Dllz3NTd; Mon, 4 Apr 2022 11:05:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649070357; 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=nA1aIXl6XQWq6Ub/WpGf19QOK14DywHUKE5oS6x7RTs=; b=s353qyDrLaQeKHiAIIMD8XKrHxgldBVXhyCHfmM+kJDxlP8Zd7IHqLeTRVruHUOnzN7oI2 WF0j/n1XmY/Du08ReZA0+FRu3cNpsAqZO4UlysPAYZhs51Jkfw5zqU+tgB0sqH/UdMgVh0 en2B/jomg1+Kw+pFD/ArE5TYHiFhXgCjRryp65GuFxsZCKo/FZ5X317k/gv3z732iE4p/d +xONvCUWOkl3mI8Nl8tux/HvF68IDCtPkNhAL2tBIsSFTnNuNzFVyPnvqx7uuYS9eMXNk5 xAxXCzyeK57ylzWBZblpiN0rMadl7F+vQ2OykQ+REJap8WuZJZ6Ic0zZwEEkMg== 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 0493310DF8; Mon, 4 Apr 2022 11:05:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 234B5uHJ086415; Mon, 4 Apr 2022 11:05:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 234B5u45086414; Mon, 4 Apr 2022 11:05:56 GMT (envelope-from git) Date: Mon, 4 Apr 2022 11:05:56 GMT Message-Id: <202204041105.234B5u45086414@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 8d79e06f468e - stable/13 - Add the char and short atomic operations on arm64 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8d79e06f468e7a6860196fecdf0ee6a0996956bd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649070357; 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=nA1aIXl6XQWq6Ub/WpGf19QOK14DywHUKE5oS6x7RTs=; b=tas9eMSTamN0o1V+C3ezl1LJ00OY6jtSsV9pcmMHBjkl2yV2O3YpRRwmvo3y6uP+7i7TO2 V0aFU8AW48/dg0JLikhm9xIykvJaVrQiJuyDfmqxqsNbWoYcFPkVGbm6fg/KFFzvPLdYue oHoks3YHsFgzLXtd6Cksw2W/GuafTuEnkWnXLF5Fw8gNHhkbNUb/za0xJJcDz0BIH4DWUq vSMNsSYivBKLyHjvze+J9opylsch1xfdhy5p7FG5faxKHAI73qipJHKxG4MZzXK36LON+a updDTZxoQu4msvlDhog40aS64vEShV4NGJ2bYu0YAG4qrcps0svVwrkq1ns2HQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649070357; a=rsa-sha256; cv=none; b=ZCUKTVZShgkdA8SSo1iAt7BlEMvl4rB9r9fY38U2MF1gXnK05dCQ+41FIjWyXR4xh03rWx dkFJpLTdCyuEO2xBtE6+ydvfBFObZG2/NLYLeAbPWwXEwOAuoOfkylpXqK5iOoLIJ2IJRP n/u+OWQEpw5wZk1t9oozRmX43uCxTaHNlstjVpc0IKf2VeWXelyzb8bCUUEt2VCYuHDoMB KcQ5u7wXjCg84HXqxGs4gr1Wpju2rHy8+OdK7ZMBKlF4W2B5Z+rHKigtvApxwo9Owyux2q yXdc74F9Tsq1yQP+0CvduxgL16EMYEy5vyJ/HriZvhw/sisStepuT3YyFCDQQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=8d79e06f468e7a6860196fecdf0ee6a0996956bd commit 8d79e06f468e7a6860196fecdf0ee6a0996956bd Author: Andrew Turner AuthorDate: 2022-01-12 15:44:36 +0000 Commit: Andrew Turner CommitDate: 2022-04-04 09:37:05 +0000 Add the char and short atomic operations on arm64 Sponsored by: The FreeBSD Foundation (cherry picked from commit ec1ecf78ae8accf93e3d3ac585ea4b24711d716d) --- sys/arm64/include/atomic.h | 58 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/sys/arm64/include/atomic.h b/sys/arm64/include/atomic.h index fe15b14181b4..415322f2a010 100644 --- a/sys/arm64/include/atomic.h +++ b/sys/arm64/include/atomic.h @@ -495,6 +495,64 @@ _ATOMIC_STORE_REL_IMPL(16, w, h) _ATOMIC_STORE_REL_IMPL(32, w, ) _ATOMIC_STORE_REL_IMPL(64, , ) +#define atomic_add_char atomic_add_8 +#define atomic_fcmpset_char atomic_fcmpset_8 +#define atomic_clear_char atomic_clear_8 +#define atomic_cmpset_char atomic_cmpset_8 +#define atomic_fetchadd_char atomic_fetchadd_8 +#define atomic_readandclear_char atomic_readandclear_8 +#define atomic_set_char atomic_set_8 +#define atomic_swap_char atomic_swap_8 +#define atomic_subtract_char atomic_subtract_8 +#define atomic_testandclear_char atomic_testandclear_8 +#define atomic_testandset_char atomic_testandset_8 + +#define atomic_add_acq_char atomic_add_acq_8 +#define atomic_fcmpset_acq_char atomic_fcmpset_acq_8 +#define atomic_clear_acq_char atomic_clear_acq_8 +#define atomic_cmpset_acq_char atomic_cmpset_acq_8 +#define atomic_load_acq_char atomic_load_acq_8 +#define atomic_set_acq_char atomic_set_acq_8 +#define atomic_subtract_acq_char atomic_subtract_acq_8 +#define atomic_testandset_acq_char atomic_testandset_acq_8 + +#define atomic_add_rel_char atomic_add_rel_8 +#define atomic_fcmpset_rel_char atomic_fcmpset_rel_8 +#define atomic_clear_rel_char atomic_clear_rel_8 +#define atomic_cmpset_rel_char atomic_cmpset_rel_8 +#define atomic_set_rel_char atomic_set_rel_8 +#define atomic_subtract_rel_char atomic_subtract_rel_8 +#define atomic_store_rel_char atomic_store_rel_8 + +#define atomic_add_short atomic_add_16 +#define atomic_fcmpset_short atomic_fcmpset_16 +#define atomic_clear_short atomic_clear_16 +#define atomic_cmpset_short atomic_cmpset_16 +#define atomic_fetchadd_short atomic_fetchadd_16 +#define atomic_readandclear_short atomic_readandclear_16 +#define atomic_set_short atomic_set_16 +#define atomic_swap_short atomic_swap_16 +#define atomic_subtract_short atomic_subtract_16 +#define atomic_testandclear_short atomic_testandclear_16 +#define atomic_testandset_short atomic_testandset_16 + +#define atomic_add_acq_short atomic_add_acq_16 +#define atomic_fcmpset_acq_short atomic_fcmpset_acq_16 +#define atomic_clear_acq_short atomic_clear_acq_16 +#define atomic_cmpset_acq_short atomic_cmpset_acq_16 +#define atomic_load_acq_short atomic_load_acq_16 +#define atomic_set_acq_short atomic_set_acq_16 +#define atomic_subtract_acq_short atomic_subtract_acq_16 +#define atomic_testandset_acq_short atomic_testandset_acq_16 + +#define atomic_add_rel_short atomic_add_rel_16 +#define atomic_fcmpset_rel_short atomic_fcmpset_rel_16 +#define atomic_clear_rel_short atomic_clear_rel_16 +#define atomic_cmpset_rel_short atomic_cmpset_rel_16 +#define atomic_set_rel_short atomic_set_rel_16 +#define atomic_subtract_rel_short atomic_subtract_rel_16 +#define atomic_store_rel_short atomic_store_rel_16 + #define atomic_add_int atomic_add_32 #define atomic_fcmpset_int atomic_fcmpset_32 #define atomic_clear_int atomic_clear_32