]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/BaseMemoryLibStm/CopyMemWrapper.c
ArmPkg: remove BaseMemoryLibStm
[mirror_edk2.git] / ArmPkg / Library / BaseMemoryLibStm / CopyMemWrapper.c
diff --git a/ArmPkg/Library/BaseMemoryLibStm/CopyMemWrapper.c b/ArmPkg/Library/BaseMemoryLibStm/CopyMemWrapper.c
deleted file mode 100644 (file)
index 2adfb31..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/** @file\r
-  CopyMem() implementation.\r
-\r
-  The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
-    BaseMemoryLib\r
-    BaseMemoryLibMmx\r
-    BaseMemoryLibSse2\r
-    BaseMemoryLibRepStr\r
-    BaseMemoryLibOptDxe\r
-    BaseMemoryLibOptPei\r
-    PeiMemoryLib\r
-    UefiMemoryLib\r
-\r
-  Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#include "MemLibInternals.h"\r
-\r
-/**\r
-  Copies a source buffer to a destination buffer, and returns the destination buffer.\r
-\r
-  This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
-  DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
-  where SourceBuffer overlaps DestinationBuffer.\r
-\r
-  If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().\r
-  If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
-\r
-  @param  DestinationBuffer   Pointer to the destination buffer of the memory copy.\r
-  @param  SourceBuffer        Pointer to the source buffer of the memory copy.\r
-  @param  Length              Number of bytes to copy from SourceBuffer to DestinationBuffer.\r
-\r
-  @return DestinationBuffer.\r
-\r
-**/\r
-VOID *\r
-EFIAPI\r
-CopyMem (\r
-  OUT VOID       *DestinationBuffer,\r
-  IN CONST VOID  *SourceBuffer,\r
-  IN UINTN       Length\r
-  )\r
-{\r
-  if (Length == 0) {\r
-    return DestinationBuffer;\r
-  }\r
-  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer));\r
-  ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)SourceBuffer));\r
-\r
-  if (DestinationBuffer == SourceBuffer) {\r
-    return DestinationBuffer;\r
-  }\r
-  return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length);\r
-}\r