Revision: 18063
          http://sourceforge.net/p/edk2/code/18063
Author:   jljusten
Date:     2015-07-26 08:07:20 +0000 (Sun, 26 Jul 2015)
Log Message:
-----------
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 <[email protected]>
Reviewed-by: Daryl McDaniel <[email protected]>

Modified Paths:
--------------
    trunk/edk2/StdLib/LibC/String/Copying.c

Modified: trunk/edk2/StdLib/LibC/String/Copying.c
===================================================================
--- trunk/edk2/StdLib/LibC/String/Copying.c     2015-07-26 08:07:15 UTC (rev 
18062)
+++ trunk/edk2/StdLib/LibC/String/Copying.c     2015-07-26 08:07:20 UTC (rev 
18063)
@@ -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.
 


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to