summaryrefslogtreecommitdiffstats
path: root/StdLib
diff options
context:
space:
mode:
authorScott Duplichan <scott@notabs.org>2015-07-26 08:07:20 +0000
committerjljusten <jljusten@Edk2>2015-07-26 08:07:20 +0000
commit88656abf1b3a690969851880ba2b134e0d144625 (patch)
tree75b078abd7c55b1492612c17c1916149213b2bbd /StdLib
parentd948fe96a570b610383111df87076e75188694d4 (diff)
downloadedk2-88656abf1b3a690969851880ba2b134e0d144625.tar.gz
edk2-88656abf1b3a690969851880ba2b134e0d144625.tar.bz2
edk2-88656abf1b3a690969851880ba2b134e0d144625.zip
StdLib: Do not define memcpy for AARCH64 builds
For AARCH64, do not define a memcpy function in stdlib because it is already defined in CompilerIntrinsicsLib. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan <scott@notabs.org> Reviewed-by: Daryl McDaniel <edk2-lists@mc2research.org> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18063 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'StdLib')
-rw-r--r--StdLib/LibC/String/Copying.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/StdLib/LibC/String/Copying.c b/StdLib/LibC/String/Copying.c
index e27519e24c..96be24b9a9 100644
--- a/StdLib/LibC/String/Copying.c
+++ b/StdLib/LibC/String/Copying.c
@@ -19,12 +19,12 @@
#include <stdlib.h>
#include <string.h>
-/** Do not define memcpy for IPF+GCC or ARM+GCC builds.
+/** Do not define memcpy for IPF+GCC or ARM/AARCH64+GCC builds.
For IPF, using a GCC compiler, the memcpy function is converted to
CopyMem by objcpy during build.
- For ARM, the memcpy function is provided by the CompilerIntrinsics library.
+ For ARM/AARCH64, the memcpy function is provided by the CompilerIntrinsics library.
**/
-#if !((defined(MDE_CPU_IPF) || defined(MDE_CPU_ARM)) && defined(__GNUC__))
+#if !((defined(MDE_CPU_IPF) || defined(MDE_CPU_ARM) || defined(MDE_CPU_AARCH64)) && defined(__GNUC__))
/** The memcpy function copies n characters from the object pointed to by s2
into the object pointed to by s1.