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 7FAC7423BA; Thu, 12 Jan 2023 22:26:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69C5B42D36; Thu, 12 Jan 2023 22:26:30 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 95A6342D27 for ; Thu, 12 Jan 2023 22:26:28 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id D66A120DFE05; Thu, 12 Jan 2023 13:26:27 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D66A120DFE05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1673558787; bh=oqRVtGKrBRnDa0BhUBmsRDz7cVMh2OdJO5o4oPXyeCU=; h=From:To:Cc:Subject:Date:From; b=CIWkls1fQZRNwklbAZHHdEKYUzw4szLF5fToi0H1xCdiRWGl1yFSfRt82L8vcByhh 3RvikzcKjB0YAkmECz8WY9v7hlC/6SXBcCjTa3SvSDQv7UZ9CKeQzVD+vJucBOkxTs Bj6rcXbQkbkSDIgXkvqJLpAi9cLDmgPIrD2z3YH0= From: Tyler Retzlaff To: dev@dpdk.org Cc: bruce.richardson@intel.com, mb@smartsharesystems.com, thomas@monjalon.net, Tyler Retzlaff Subject: [PATCH] eal: abstract compiler atomics Date: Thu, 12 Jan 2023 13:26:24 -0800 Message-Id: <1673558785-24992-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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. 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 | 156 ++++++++++++++++++++++++++++++++- 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, 199 insertions(+), 8 deletions(-) -- 1.8.3.1