]> git.proxmox.com Git - mirror_edk2.git/commitdiff
StdLib: Do not define memcpy for AARCH64 builds
authorScott Duplichan <scott@notabs.org>
Sun, 26 Jul 2015 08:07:20 +0000 (08:07 +0000)
committerjljusten <jljusten@Edk2>
Sun, 26 Jul 2015 08:07:20 +0000 (08:07 +0000)
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

StdLib/LibC/String/Copying.c

index e27519e24c0465902a32c8fb8cdae120c05a8ee6..96be24b9a9bd1c38b9b1d75efda23059a88a957a 100644 (file)
 #include  <stdlib.h>\r
 #include  <string.h>\r
 \r
-/** Do not define memcpy for IPF+GCC or ARM+GCC builds.\r
+/** Do not define memcpy for IPF+GCC or ARM/AARCH64+GCC builds.\r
     For IPF, using a GCC compiler, the memcpy function is converted to\r
     CopyMem by objcpy during build.\r
-    For ARM, the memcpy function is provided by the CompilerIntrinsics library.\r
+    For ARM/AARCH64, the memcpy function is provided by the CompilerIntrinsics library.\r
 **/\r
-#if !((defined(MDE_CPU_IPF) || defined(MDE_CPU_ARM)) && defined(__GNUC__))\r
+#if !((defined(MDE_CPU_IPF) || defined(MDE_CPU_ARM) || defined(MDE_CPU_AARCH64)) && defined(__GNUC__))\r
 /** The memcpy function copies n characters from the object pointed to by s2\r
     into the object pointed to by s1.\r
 \r