From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3709141C44; Wed, 8 Feb 2023 22:43:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 188464014F; Wed, 8 Feb 2023 22:43:43 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 8AE0E40141 for ; Wed, 8 Feb 2023 22:43:41 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id DA4AD20C8AD4; Wed, 8 Feb 2023 13:43:40 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com DA4AD20C8AD4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1675892620; bh=/Gms6U92Tix/5Qmey3axWegaTq9KcfWLpbkZYDTqk5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JDFBShko+IfZIIqK0WPWcJT9irqt5UGJSqHbScCxFi0OuYxti9HvOO3/XEaM4Of7P lA5B8GawvHQiM9EF1reU8wiokW7QZKeHUYpkqtvSPctm6OWmH7ENCBSB5nHBH3k3qI I+aywL3jarUm5+yWoknEOapL0OToZgqLj/McrlYQ= From: Tyler Retzlaff To: dev@dpdk.org Cc: david.marchand@redhat.com, thomas@monjalon.net, mb@smartsharesystems.com, Honnappa.Nagarahalli@arm.com, bruce.richardson@intel.com, Tyler Retzlaff Subject: [PATCH v2] eal: abstract compiler atomics Date: Wed, 8 Feb 2023 13:43:37 -0800 Message-Id: <1675892618-31755-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1673558785-24992-1-git-send-email-roretzla@linux.microsoft.com> References: <1673558785-24992-1-git-send-email-roretzla@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Introduce an abstraction for compiler specific atomics and a meson option to allow standard C11 atomics use. Note, this series does not attempt to convert to the use of the abstraction it only introduces it as per the plan discussed here. http://mails.dpdk.org/archives/dev/2023-January/258693.html devtools checkatches warnings are expected as we intend no functional change with this series. Subsequent series will address the use of __sync_xxx builtins warning. v2: * remove non-explicit rte_atomic_xxx macros. Tyler Retzlaff (1): eal: introduce atomics abstraction config/meson.build | 11 ++++ lib/eal/arm/include/rte_atomic_32.h | 6 ++- lib/eal/arm/include/rte_atomic_64.h | 6 ++- lib/eal/include/generic/rte_atomic.h | 96 +++++++++++++++++++++++++++++++++- lib/eal/loongarch/include/rte_atomic.h | 6 ++- lib/eal/ppc/include/rte_atomic.h | 6 ++- lib/eal/riscv/include/rte_atomic.h | 6 ++- lib/eal/x86/include/rte_atomic.h | 8 ++- meson_options.txt | 2 + 9 files changed, 139 insertions(+), 8 deletions(-) -- 1.8.3.1