summaryrefslogtreecommitdiff
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-08-11 16:01:24 +0200
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-09-01 14:51:18 +0100
commita0cf6b8d93d7fab44f8bcb850ebbe696d0c3d4bd (patch)
treee7d35db10ee7a5f9cf2c16dd9c96381431666e9d /UefiCpuPkg
parent00afc8f82061677fedc86cb05e3b8c75a3c986ff (diff)
downloadedk2-a0cf6b8d93d7fab44f8bcb850ebbe696d0c3d4bd.zip
edk2-a0cf6b8d93d7fab44f8bcb850ebbe696d0c3d4bd.tar.gz
edk2-a0cf6b8d93d7fab44f8bcb850ebbe696d0c3d4bd.tar.bz2
ArmPkg/CompilerIntrinsicsLib: replace memcpy and memset with C code
This replaces the various implementations of memset and memcpy, including the ARM RTABI ones (__aeabi_mem[set|clr]_[|4|8]) with a single C implementation for each. The ones we have are either not very sophisticated (ARM), or they are too sophisticated (memcpy() on AARCH64, which may perform unaligned accesses) or already coded in C (memset on AArch64). The Tianocore codebase mandates the explicit use of its SetMem() and CopyMem() equivalents, of which various implementations exist for use in different contexts (PEI, DXE). Few compiler generated references to these functions should remain, and so our implementations in this BASE library should be small and usable with the MMU off. So replace them with a simple C implementation that builds correctly on GCC/AARCH64, CLANG/AARCH64, GCC/ARM, CLANG/ARM and RVCT/ARM. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'UefiCpuPkg')
0 files changed, 0 insertions, 0 deletions