The RiscV toolchain doesn't provide __ctzdi2 implementation when
compiled with -nostdlib that needed by openssl library when EC
enabled. So adding the simple implementation of __ctzdi2.
Forcing to use CopyMem of EDK2 as builtin memcpy disabled for RiscV
with -fno-builtin-memcpy flag.
Signed-off-
On Thu, Dec 15, 2022 at 09:48:59AM -0800, Tuan Phan wrote:
> The RiscV toolchain doesn't provide __ctzdi2 implementation when
> compiled with -nostdlib that needed by openssl library when EC
> enabled. So adding the simple implementation of __ctzdi2.
>
> Forcing to use CopyMem of EDK2 as builtin