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
This commit is contained in:
Scott Duplichan 2015-07-26 08:07:20 +00:00 committed by jljusten
parent d948fe96a5
commit 88656abf1b
1 changed files with 3 additions and 3 deletions

View File

@ -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.