Re: [EXTERNAL] RE: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-20 Thread Ni, Ray
...@hpe.com; Abner Chang ; Gilbert Chen ; Bi, Dandan ; Dong, Eric Subject: Re: [EXTERNAL] RE: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment Hi Ray, On Thu, Mar 12, 2020 at 12:21 PM Ni, Ray mailto:ray...@intel.com>> wrote: > Does CompilerIntrinsics

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-15 Thread Abner Chang
> ; Chen, Gilbert ; > af...@apple.com; michael.d.kin...@intel.com; p...@akeo.ie; Ard > Biesheuvel > Subject: Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem > instead of GUID assignment > > On Fri, Mar 13, 2020 at 04:08:12 +, Chang, Abner (HPS SW/FW > Techno

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-13 Thread Laszlo Ersek
On 03/12/20 22:19, Leif Lindholm wrote: > On Thu, Mar 12, 2020 at 20:42:52 +0100, Laszlo Ersek wrote: >> On 03/12/20 15:44, Leif Lindholm wrote: >>> And what would you propose we do the next time the RISC-V toolchain >>> generates a memcpy call based on some other completely valid change to >>> cor

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-13 Thread Leif Lindholm
t; Cc: Chang, Abner (HPS SW/FW Technologist) ; > > Schaefer, Daniel (DualStudy) ; Chen, Gilbert > > ; af...@apple.com; michael.d.kin...@intel.com; > > p...@akeo.ie; Ard Biesheuvel > > Subject: Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem > > instead of GUID assign

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Abner Chang
le.com; michael.d.kin...@intel.com; > p...@akeo.ie; Ard Biesheuvel > Subject: Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem > instead of GUID assignment The current NULL instance of CompilerIntrinsicsLib is applied on every modules, this means it's not flexible for overwr

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Abner Chang
Chen, Gilbert ; > af...@apple.com; michael.d.kin...@intel.com; p...@akeo.ie; Ard > Biesheuvel ; Laszlo Ersek > Subject: Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem > instead of GUID assignment > > For clarity, I'm suggesting *I* take care of moving this into a generi

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Leif Lindholm
On Thu, Mar 12, 2020 at 20:42:52 +0100, Laszlo Ersek wrote: > On 03/12/20 15:44, Leif Lindholm wrote: > > And what would you propose we do the next time the RISC-V toolchain > > generates a memcpy call based on some other completely valid change to > > core code? > > We could choose to enable the

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Leif Lindholm
On Thu, Mar 12, 2020 at 20:36:04 +0100, Laszlo Ersek wrote: > On 03/12/20 15:03, Leif Lindholm wrote: > > +Ard, Laszlo. > > > > I think it would make sense to move it to MdeModulePkg (or MdePkg) and > > rename it BaseCompilerIntrinsicsLib (it *is* a BASE library). > > > > As I alluded in my reply

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Andrew Fish via Groups.Io
> On Mar 12, 2020, at 12:36 PM, Laszlo Ersek wrote: > > On 03/12/20 15:03, Leif Lindholm wrote: >> +Ard, Laszlo. >> >> I think it would make sense to move it to MdeModulePkg (or MdePkg) and >> rename it BaseCompilerIntrinsicsLib (it *is* a BASE library). >> >> As I alluded in my reply to Ray

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Laszlo Ersek
>> >>> -Original Message- >>> From: Leif Lindholm [mailto:l...@nuviainc.com] >>> Sent: Thursday, March 12, 2020 10:03 PM >>> To: Schaefer, Daniel (DualStudy) >>> Cc: devel@edk2.groups.io; Chang, Abner (HPS SW/FW Technologist) >>> ; Che

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Laszlo Ersek
On 03/12/20 15:03, Leif Lindholm wrote: > +Ard, Laszlo. > > I think it would make sense to move it to MdeModulePkg (or MdePkg) and > rename it BaseCompilerIntrinsicsLib (it *is* a BASE library). > > As I alluded in my reply to Ray - x86 also have this problem, but to a > lesser extent, and ended

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Leif Lindholm
...@nuviainc.com] > > > Sent: Thursday, March 12, 2020 10:03 PM > > > To: Schaefer, Daniel (DualStudy) > > > Cc: devel@edk2.groups.io; Chang, Abner (HPS SW/FW Technologist) > > > ; Chen, Gilbert ; > > > af...@apple.com; michael.d.kin...@intel.com; p...@a

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Leif Lindholm
Cc: devel@edk2.groups.io; Chang, Abner (HPS SW/FW Technologist) > > ; Chen, Gilbert ; > > af...@apple.com; michael.d.kin...@intel.com; p...@akeo.ie; Ard > > Biesheuvel ; Laszlo Ersek > > Subject: Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem > > instead of GUID

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Abner Chang
gt; > Sent: Thursday, March 12, 2020 11:55 > > To: devel@edk2.groups.io<mailto:devel@edk2.groups.io> > > <mailto:devel@edk2.groups.io>; Schaefer, Daniel > > (DualStudy) > <mailto:daniel.schae...@hpe.com> > > Cc: Chang, Abner (HPS SW/FW Technologist) &g

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Leif Lindholm
(HPS SW/FW Technologist) > <mailto:abner.ch...@hpe.com>; Chen, Gilbert > <mailto:gilbert.c...@hpe.com>; Dandan Bi > <mailto:dandan...@intel.com>; Eric Dong > <mailto:eric.d...@intel.com> > Subject: Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of

Re: [EXTERNAL] RE: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Leif Lindholm
Hi Ray, On Thu, Mar 12, 2020 at 12:21 PM Ni, Ray wrote: > Does CompilerIntrinsicsLib exist because GCC doesn't support to disable intrinsic? It is not possible to disable all intrinsics on 32-bit ARM, and it's not necessarily desirable to do so for AArch64 (so I don't think it's implemented). N

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Daniel Schaefer
) <mailto:abner.ch...@hpe.com>; Chen, Gilbert <mailto:gilbert.c...@hpe.com>; Dandan Bi <mailto:dandan...@intel.com>; Eric Dong <mailto:eric.d...@intel.com> Subject: Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment Hi Daniel, There is nothing wrong

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Ni, Ray
March 12, 2020 6:55 PM > To: devel@edk2.groups.io; daniel.schae...@hpe.com > Cc: Abner Chang ; Gilbert Chen > ; Bi, Dandan ; Dong, Eric > > Subject: Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem > instead of GUID assignment > > Hi Daniel, > > There is

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-12 Thread Leif Lindholm
Hi Daniel, There is nothing wrong with this patch that just went in (and I should have called out sooner if I wanted to stop it), but I think a better solution is to implement a RISC-V variant of ArmPkg/Library/CompilerIntrinsicsLib/. It is perfectly valid for the compiler to generate memcpy call

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-11 Thread Abner Chang
ilbert ; Leif Lindholm ; Dong, Eric Subject: RE: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment Pushed @ 64a228f5f89320fd632bb6c55e154961f2410680 Regards, Jian > -Original Message- > From: devel@edk2.groups.io On Behalf Of Dandan Bi > Sent: Thu

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-11 Thread Wang, Jian J
dholm ; Dong, Eric > > Subject: Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem > instead of GUID assignment > > Reviewed-by: Dandan Bi > > > Thanks, > Dandan > > -Original Message- > > From: Daniel Schaefer [mailto:daniel.schae...@hpe.c

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-04 Thread Dandan Bi
Reviewed-by: Dandan Bi Thanks, Dandan > -Original Message- > From: Daniel Schaefer [mailto:daniel.schae...@hpe.com] > Sent: Monday, March 2, 2020 6:33 PM > To: devel@edk2.groups.io > Cc: Abner Chang ; Gilbert Chen > ; Leif Lindholm ; Bi, Dandan > ; Dong, Eric > Subject: [PATCH v2 3/3] M

Re: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-02 Thread Liming Gao
6:33 PM > To: devel@edk2.groups.io > Cc: Abner Chang ; Gilbert Chen ; > Leif Lindholm ; Bi, Dandan > ; Dong, Eric > Subject: [edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of > GUID assignment > > GCC translates a simple assignment to memcpy, which EDK

[edk2-devel] [PATCH v2 3/3] MdeModulePkg: Use CopyMem instead of GUID assignment

2020-03-02 Thread Daniel Schaefer
GCC translates a simple assignment to memcpy, which EDKII doesn't provide. See: https://www.mail-archive.com/edk2-devel@lists.01.org/msg11928.html REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2547 Signed-off-by: Daniel Schaefer Cc: Abner Chang Cc: Gilbert Chen Cc: Leif Lindholm Cc: Dand