From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from loongson.cn (loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web11.5045.1663917756827167535 for ; Fri, 23 Sep 2022 00:22:37 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: loongson.cn, ip: 114.242.206.163, mailfrom: lichao@loongson.cn) Received: from lichao-PC (unknown [10.40.24.149]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Bxnmu7Xi1jqYsgAA--.42610S2; Fri, 23 Sep 2022 15:22:35 +0800 (CST) Date: Fri, 23 Sep 2022 15:22:35 +0800 From: "Chao Li" To: Michael D Kinney , Liming Gao , Zhiguang Liu Cc: "=?utf-8?Q?devel=40edk2.groups.io?=" Message-ID: <910730C2-BD5D-4E79-BA47-23ED26723176@getmailspring.com> In-Reply-To: <20220914094151.3697410-1-lichao@loongson.cn> References: <20220914094151.3697410-1-lichao@loongson.cn> Subject: Re: [PATCH v2 29/34] MdePkg/BaseSafeIntLib: Add LoongArch64 architecture for BaseSafeIntLib. X-Mailer: Mailspring MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Bxnmu7Xi1jqYsgAA--.42610S2 X-Coremail-Antispam: 1UD129KBjvJXoW7tFykWr15Kr17KrWxCw4xCrg_yoW8ur4fpr s7tw4rWa4xXr40kFZ8u3y7Jrn8Wa9F9wn8JF4vvr4FvFs0yw1vgr1YgrWxtr1rAFyxZryD uw1Yy3WDuFykCFJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUBlb7Iv0xC_Zr1lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwV C2z280aVCY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40Eb7x2 x7xS6r1j6r4UMc02F40EFcxC0VAKzVAqx4xG6I80ewAqx4xG64kEw2xG04xIwI0_Gr0_Xr 1lYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvY0x0EwIxGrwCjr7xvwVCIw2I0I7xG6c02F41lc2xSY4AK6svPMx AIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_JrI_ JrWlx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwI xGrwCI42IY6xIIjxv20xvE14v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x0267AKxVW8JVWx JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Gr0_Cr1lIxAIcV C2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7IU0o89tUUUUU== X-CM-SenderInfo: xolfxt3r6o00pqjv00gofq/1tbiAQASCGMsUF0TtQAisd Content-Type: multipart/alternative; boundary="632d5ebb_3b56a198_dbe1" --632d5ebb_3b56a198_dbe1 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Mike, Liming and Zhiguang, This patch has not been reviewed, would you please review it=3F Thanks, Chao -------- On 9=E6=9C=88 14 2022, at 5:41 =E4=B8=8B=E5=8D=88, Chao Li wrote: > RE=46: https://bugzilla.tianocore.org/show=5Fbug.cgi=3Fid=3D4053 > > Add LoongArch64 architecture for BaseSafeIntLib library. > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > > Signed-off-by: Chao Li > --- > MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf =7C 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf b/MdePkg/= Library/BaseSafeIntLib/BaseSafeIntLib.inf > index 40017ec88b..9d039f2e5b 100644 > --- a/MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf > +++ b/MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf > =40=40 -4,9 +4,10 =40=40 > =23 This library provides helper functions to prevent integer overflow = during > > =23 type conversion, addition, subtraction, and multiplication. > =23 > -=23 Copyright (c) 2018, Intel Corporation. All rights reserved.
> +=23 Copyright (c) 2018, Intel Corporation. All rights reserved.
> =23 Copyright (c) 2017, Microsoft Corporation > -=23 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All= rights reserved.
> +=23 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All= rights reserved.
> +=23 Copyright (c) 2022, Loongson Technology Corporation Limited. All r= ights reserved.
> > > =23 > =23 All rights reserved. > =40=40 -25,7 +26,7 =40=40 > =23 > > =23 The following information is for reference only and not required by= the build tools. > =23 > -=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 > +=23 VALID=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64= > =23 > > > =5BSources=5D > =40=40 -34,7 +35,7 =40=40 > =5BSources.Ia32, Sources.ARM=5D > > SafeIntLib32.c > > > -=5BSources.X64, Sources.AARCH64, Sources.RISCV64=5D > +=5BSources.X64, Sources.AARCH64, Sources.RISCV64, Sources.LOONGARCH64=5D= > SafeIntLib64.c > > > =5BSources.EBC=5D > -- > 2.27.0 > --632d5ebb_3b56a198_dbe1 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi Mike, Liming and Zhiguang,
This patch has not been reviewed, would you= please review it=3F


Thanks,<= br>Chao
--------

On 9=E6=9C=88 14 2022, at 5:41 =E4=B8=8B=E5=8D=88,= Chao Li <lichao=40loongson.cn> wrote:
R= E=46: https://bugzilla.tianocore.org/show=5Fbug.cgi=3Fid=3D4053

=
Add LoongArch64 architecture for BaseSafeIntLib library.

Cc: Michael D Kinney <michael.d.kinney=40intel.com>
Cc= : Liming Gao <gaoliming=40byosoft.com.cn>
Cc: Zhiguang Li= u <zhiguang.liu=40intel.com>

Signed-off-by: Chao Li &= lt;lichao=40loongson.cn>
---
MdePkg/Library/BaseSa= feIntLib/BaseSafeIntLib.inf =7C 9 +++++----
1 file changed, 5 i= nsertions(+), 4 deletions(-)

diff --git a/MdePkg/Library/Ba= seSafeIntLib/BaseSafeIntLib.inf b/MdePkg/Library/BaseSafeIntLib/BaseSafeI= ntLib.inf
index 40017ec88b..9d039f2e5b 100644
--- a/M= dePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
+++ b/MdePkg/Li= brary/BaseSafeIntLib/BaseSafeIntLib.inf
=40=40 -4,9 +4,10 =40=40=
=23 This library provides helper functions to prevent integer = overflow during

=23 type conversion, addition, subtraction,= and multiplication.

=23

-=23 Copyright (c) 2= 018, Intel Corporation. All rights reserved.<BR>

+=23= Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
=23 Copyright (c) 2017, Microsoft Corporation

-= =23 Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All ri= ghts reserved.<BR>

+=23 Copyright (c) 2020, Hewlett P= ackard Enterprise Development LP. All rights reserved.<BR>
+=23 Copyright (c) 2022, Loongson Technology Corporation Limited. A= ll rights reserved.<BR>



=23

=23= All rights reserved.

=40=40 -25,7 +26,7 =40=40
=23=

=23 The following information is for reference only and no= t required by the build tools.

=23

-=23 VALID= =5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64

+=23 VALI= D=5FARCHITECTURES =3D IA32 X64 ARM AARCH64 RISCV64 LOONGARCH64

<= div>=23



=5BSources=5D

=40=40 -34,7 +3= 5,7 =40=40
=5BSources.Ia32, Sources.ARM=5D

SafeIn= tLib32.c



-=5BSources.X64, Sources.AARCH64, Sources.= RISCV64=5D

+=5BSources.X64, Sources.AARCH64, Sources.RISCV6= 4, Sources.LOONGARCH64=5D

SafeIntLib64.c



<= div>=5BSources.EBC=5D
--
2.27.0
--632d5ebb_3b56a198_dbe1--