MdePkg: CompilerIntrinsicsLib: Add RiscV64 support

Add memcpy/memset implementations for RiscV64 as they may be required by
compiler during linking when build with the -Os flag.

Signed-off-by: Tuan Phan <tuan.phan@oss.qualcomm.com>
This commit is contained in:
Tuan Phan 2026-01-20 20:32:31 -08:00 committed by mergify[bot]
parent d0b66f1671
commit 7da9028ca3
2 changed files with 5 additions and 4 deletions

View file

@ -60,12 +60,12 @@
# implements exception handling for SEC and PEI_CORE, it can use StackCheckLib for these phases in its DSC.
StackCheckLib|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
[LibraryClasses.AARCH64]
[LibraryClasses.AARCH64, LibraryClasses.RISCV64]
#
# It is not possible to prevent the AARCH64 compilers from inserting generic intrinsic functions.
# This library provides the intrinsic functions generated by these compilers.
# It is not possible to prevent compilers from inserting generic intrinsic functions.
# This library provides the intrinsic functions generated by compilers.
#
# Linking this here as a null library will cause all AARCH64 files to link against it and have
# Linking this here as a null library will cause all files to link against it and have
# definitions for the intrinsic functions.
#
NULL|MdePkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf

View file

@ -217,6 +217,7 @@
MdePkg/Library/PeiServicesTablePointerLibRiscV/PeiServicesTablePointerLib.inf
MdePkg/Library/DxeRiscvMpxyLib/DxeRiscvMpxy.inf
MdePkg/Library/DxeRiscvRasAgentClientLib/DxeRiscvRasAgentClientLib.inf
MdePkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
[Components.LOONGARCH64]
MdePkg/Library/PeiServicesTablePointerLibKs0/PeiServicesTablePointerLibKs0.inf