From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mx.groups.io with SMTP id smtpd.web09.4262.1668165672941641230 for ; Fri, 11 Nov 2022 03:21:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=pPzV7AvB; spf=pass (domain: ventanamicro.com, ip: 209.85.216.53, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pj1-f53.google.com with SMTP id d13-20020a17090a3b0d00b00213519dfe4aso4473484pjc.2 for ; Fri, 11 Nov 2022 03:21:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SCGlaEvCFUD8V4NyQQu+Od6/uavhlhyj/9uK04v3tq8=; b=pPzV7AvBO89IO3fbvKjxtruC4hEAQcB//x0aidzqW9ob3VqyZ7/uC2iqmwjEy+dygG fO4gBxzIcG2q9HAD2VPf9CToJWG5MMTwmx/5eKbzZrmEWrM+13YXhMBuEm2s2GZUGmuP aDGce4nDfVviTkKX3QvpcdeYkl03G0WtRCh1cXT6t4B0wO6DLTksqUJ7Wy8xzi6ZAEYH ePmqPHceai3o8wc8OVSeZVueZ2qL/AGOPrZWYN+KhmtKCnf7ARASozkqcmpC86ssGrcQ g8hwVUb7AN7ItPmRbCXTxllow0NmccXoezX/Y/nWVl0hXOpJTmsKShgMhXpXIwAh1Hz0 ZDHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SCGlaEvCFUD8V4NyQQu+Od6/uavhlhyj/9uK04v3tq8=; b=Kc/WdcWGEmKNjMIWqCFBjDLKsxa5KCjpAaDu9RFmhT3n2eylcEAdsfjDLCxuFSjmH9 6FJpAbRvK3MZ9nSKfWykckrXB5BifbMnZuOitjoc34OIeNsqsDtCXeyg4A/DojiHmJBX O3Bf8leubeU21EE4Y1U1MmhMoWOWECUpDv+l0w7k7jlNp+y6h5CPIlr0FZRLtlVL9XV+ 47zYUcbJscPGiHyCIHq6+R5OQD1sWCh5Nar7NX4sfAuTjxpSO/B5Pkwuu9DQXLuyIYgP ZmCb9V7RTr3QtdRDZEAzBWOx29Jx96fBQXqlQIaWD60Vqi+CvY371xWFyBCCb/sCs1CQ H+mA== X-Gm-Message-State: ANoB5plBx365PJFrRJ5u9mgWur2/P3SNK1NurcDLCvJjlfjpYmSA2l3X 0gFweIfHdlWDx2pOpEYMe777HO6VHTWkGw== X-Google-Smtp-Source: AA0mqf4rj1C1c6iQJDIoghl1rHOzegHxTwvS9sOmLiWfjUvRimwlfB9SV8D5ZCYxxsJY6JtCj7gkxg== X-Received: by 2002:a17:90a:2fcb:b0:213:258e:7435 with SMTP id n11-20020a17090a2fcb00b00213258e7435mr1386966pjm.137.1668165672014; Fri, 11 Nov 2022 03:21:12 -0800 (PST) Return-Path: Received: from kerodipc.Dlink ([49.206.12.236]) by smtp.gmail.com with ESMTPSA id a6-20020aa795a6000000b0056246403534sm1346434pfk.88.2022.11.11.03.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 03:21:11 -0800 (PST) From: "Sunil V L" To: devel@edk2.groups.io Cc: Abner Chang , Zhihao Li , Michael D Kinney , Liming Gao , Zhiguang Liu , Daniel Schaefer Subject: [PATCH 1/1] BaseSynchronizationLib: Fix RISC-V helper name Date: Fri, 11 Nov 2022 16:51:06 +0530 Message-Id: X-Mailer: git-send-email 2.38.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4143 Fix the name of InternalSyncCompareExchange64() function. Signed-off-by: Sunil V L Reported-by: Zhihao Li Tested-by: Zhihao Li Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Daniel Schaefer --- .../Library/BaseSynchronizationLib/BaseSynchronizationLib.inf | 2 +- .../Library/BaseSynchronizationLib/RiscV64/Synchronization.S | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf b/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf index dd66ec1d0370..88dfb880fea9 100755 --- a/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf +++ b/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf @@ -81,7 +81,7 @@ [Sources.AARCH64] [Sources.RISCV64] Synchronization.c - RiscV64/Synchronization.S + RiscV64/Synchronization.S | GCC [Sources.LOONGARCH64] Synchronization.c diff --git a/MdePkg/Library/BaseSynchronizationLib/RiscV64/Synchronization.S b/MdePkg/Library/BaseSynchronizationLib/RiscV64/Synchronization.S index bac80d687168..f287ef38f651 100644 --- a/MdePkg/Library/BaseSynchronizationLib/RiscV64/Synchronization.S +++ b/MdePkg/Library/BaseSynchronizationLib/RiscV64/Synchronization.S @@ -36,8 +36,6 @@ exit: mv a0, a3 ret -.global ASM_PFX(InternalSyncCompareExchange64) - // // Compare and xchange a 64-bit value. // @@ -45,7 +43,7 @@ exit: // @param a1 : Compare value. // @param a2 : Exchange value. // -ASM_PFX (SyncCompareExchange64): +ASM_PFX (InternalSyncCompareExchange64): lr.d a3, (a0) // Load the value from a0 and make // the reservation of address. bne a3, a1, exit -- 2.38.0