From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from walk.intel-email.com (walk.intel-email.com [101.227.64.242]) by mx.groups.io with SMTP id smtpd.web11.142292.1669700725781660509 for ; Mon, 28 Nov 2022 21:45:26 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@byosoft.com.cn header.s=cloud-union header.b=WL45fTvx; spf=pass (domain: byosoft.com.cn, ip: 101.227.64.242, mailfrom: gaoliming@byosoft.com.cn) Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 7DC87CD1F7D5 for ; Tue, 29 Nov 2022 13:45:22 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=byosoft.com.cn; s=cloud-union; t=1669700722; bh=XuqKxKChZ8eHzB8naoyBMO/O2SimqHG47pe7LPwoCic=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=WL45fTvxBD3rc3ZzhJGUdeDezXcF3agJ9ru6jXahq9FNIBruc7X6ortQ4q1STs9Gc lIDZZabdER/oE5ms/vSjDDnL/VIrYhtnndQisI1Lqi3Hllt61P1GVVzY4Wd76nZvGG 7C1oT8z4lGW66lbvYS189HQEVcQ8OtRcwRLxH/h8= Received: from localhost (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 79488CD1F7DC for ; Tue, 29 Nov 2022 13:45:22 +0800 (CST) Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 5133DCD1F6B7 for ; Tue, 29 Nov 2022 13:45:22 +0800 (CST) Authentication-Results: walk.intel-email.com; none Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by walk.intel-email.com (Postfix) with SMTP id DF1E7CD1F6B4 for ; Tue, 29 Nov 2022 13:45:19 +0800 (CST) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 29 Nov 2022 13:45:10 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: "'Abner Chang'" , "'Zhihao Li'" , "'Michael D Kinney'" , "'Zhiguang Liu'" , "'Daniel Schaefer'" References: In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIDEvMV0gQmFzZVN5bmNocm9uaXphdGlvbkxpYjogRml4IFJJU0MtViBoZWxwZXIgbmFtZQ==?= Date: Tue, 29 Nov 2022 13:45:11 +0800 Message-ID: <029001d903b5$bf7b40f0$3e71c2d0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIgjbzJ9H2hfww7ERpYA0ubtwurfwFtMjpSrbrmRHA= Sender: "gaoliming" Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io =B4=FA=B1= =ED Sunil V L > =B7=A2=CB=CD=CA=B1=BC=E4: 2022=C4=EA11=D4=C211=C8=D5 19:21 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Abner Chang ; Zhihao Li > ; Michael D Kinney ; > Liming Gao ; Zhiguang Liu > ; Daniel Schaefer > =D6=F7=CC=E2: [edk2-devel] [PATCH 1/1] BaseSynchronizationLib: Fix RISC-V= helper > name >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4143 >=20 > Fix the name of InternalSyncCompareExchange64() function. >=20 > Signed-off-by: Sunil V L > Reported-by: Zhihao Li > Tested-by: Zhihao Li >=20 > 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(-) >=20 > 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] >=20 > [Sources.RISCV64] > Synchronization.c > - RiscV64/Synchronization.S > + RiscV64/Synchronization.S | GCC >=20 > [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 >=20 > -.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 >=20 >=20 >=20 >=20 >=20