]> git.proxmox.com Git - mirror_edk2.git/commitdiff
clean up all of eight BaseMemoryLib instances in MdePkg with the following updates:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 11 Aug 2009 15:32:16 +0000 (15:32 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 11 Aug 2009 15:32:16 +0000 (15:32 +0000)
1. Remove .intel_syntax directives in GCC assembly files. All these assembly files have been updated to use the preferred syntax for GAS
2. Correct the incorrect comments for internal worker functions for SetMemXX() and ScanMemXX(). The Length parameter is actually the counter of 16-bit, 32-bit or 64-bit value.
3. Simplify the logic in ZeroMemoryWrapper.c for BaseMemoryLibOptPei instance to remove the conditional statement for zero length. This logic is already covered by worker function InternalMemZeroMem().
4. Cleanup all the Wrapper C files in BaseMemoryLib instances. They are supposed to be shared by all these 8 BaseMemoryLib instances, but are out-of-sync after some maintenance. This patch re-syncs them and makes them exactly the same.
5. Cleanup MemLibInternal.h so that it is shared by 6 BaseMemoryLib instance except for PeiMemoryLib and UefiMemoryLib.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9041 6f19259b-4bc3-4df7-8a09-765794883524

162 files changed:
MdePkg/Library/BaseMemoryLib/CompareMemWrapper.c
MdePkg/Library/BaseMemoryLib/CopyMemWrapper.c
MdePkg/Library/BaseMemoryLib/MemLibGeneric.c
MdePkg/Library/BaseMemoryLib/MemLibGuid.c
MdePkg/Library/BaseMemoryLib/MemLibInternals.h
MdePkg/Library/BaseMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLib/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLib/SetMem16Wrapper.c
MdePkg/Library/BaseMemoryLib/SetMem32Wrapper.c
MdePkg/Library/BaseMemoryLib/SetMem64Wrapper.c
MdePkg/Library/BaseMemoryLib/SetMemWrapper.c
MdePkg/Library/BaseMemoryLib/ZeroMemWrapper.c
MdePkg/Library/BaseMemoryLibMmx/CompareMemWrapper.c
MdePkg/Library/BaseMemoryLibMmx/CopyMemWrapper.c
MdePkg/Library/BaseMemoryLibMmx/MemLibGuid.c
MdePkg/Library/BaseMemoryLibMmx/MemLibInternals.h
MdePkg/Library/BaseMemoryLibMmx/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/SetMem16Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/SetMem32Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/SetMem64Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S
MdePkg/Library/BaseMemoryLibMmx/X64/CopyMem.S
MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem16.S
MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem32.S
MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem64.S
MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem8.S
MdePkg/Library/BaseMemoryLibMmx/X64/SetMem.S
MdePkg/Library/BaseMemoryLibMmx/X64/SetMem16.S
MdePkg/Library/BaseMemoryLibMmx/X64/SetMem32.S
MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.S
MdePkg/Library/BaseMemoryLibMmx/X64/ZeroMem.S
MdePkg/Library/BaseMemoryLibMmx/ZeroMemWrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/CompareMemWrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/CopyMemWrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/MemLibGuid.c
MdePkg/Library/BaseMemoryLibOptDxe/MemLibInternals.h
MdePkg/Library/BaseMemoryLibOptDxe/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/SetMem16Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/SetMem32Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/SetMem64Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/X64/CompareMem.S
MdePkg/Library/BaseMemoryLibOptDxe/X64/CopyMem.S
MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem16.S
MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem32.S
MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem64.S
MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem8.S
MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S
MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem16.S
MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem32.S
MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem64.S
MdePkg/Library/BaseMemoryLibOptDxe/X64/ZeroMem.S
MdePkg/Library/BaseMemoryLibOptDxe/ZeroMemWrapper.c
MdePkg/Library/BaseMemoryLibOptPei/CompareMemWrapper.c
MdePkg/Library/BaseMemoryLibOptPei/CopyMemWrapper.c
MdePkg/Library/BaseMemoryLibOptPei/MemLibGuid.c
MdePkg/Library/BaseMemoryLibOptPei/MemLibInternals.h
MdePkg/Library/BaseMemoryLibOptPei/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/SetMem16Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/SetMem32Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/SetMem64Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibOptPei/X64/CompareMem.S
MdePkg/Library/BaseMemoryLibOptPei/X64/CopyMem.S
MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem16.S
MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem32.S
MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem64.S
MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem8.S
MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem.S
MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem16.S
MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem32.S
MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem64.S
MdePkg/Library/BaseMemoryLibOptPei/X64/ZeroMem.S
MdePkg/Library/BaseMemoryLibOptPei/ZeroMemWrapper.c
MdePkg/Library/BaseMemoryLibRepStr/CompareMemWrapper.c
MdePkg/Library/BaseMemoryLibRepStr/CopyMemWrapper.c
MdePkg/Library/BaseMemoryLibRepStr/MemLibGuid.c
MdePkg/Library/BaseMemoryLibRepStr/MemLibInternals.h
MdePkg/Library/BaseMemoryLibRepStr/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/SetMem16Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/SetMem32Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/SetMem64Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibRepStr/X64/CompareMem.S
MdePkg/Library/BaseMemoryLibRepStr/X64/CopyMem.S
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem16.S
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem32.S
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem64.S
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem8.S
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem.S
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem16.S
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem32.S
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem64.S
MdePkg/Library/BaseMemoryLibRepStr/X64/ZeroMem.S
MdePkg/Library/BaseMemoryLibRepStr/ZeroMemWrapper.c
MdePkg/Library/BaseMemoryLibSse2/CompareMemWrapper.c
MdePkg/Library/BaseMemoryLibSse2/CopyMemWrapper.c
MdePkg/Library/BaseMemoryLibSse2/MemLibGuid.c
MdePkg/Library/BaseMemoryLibSse2/MemLibInternals.h
MdePkg/Library/BaseMemoryLibSse2/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/SetMem16Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/SetMem32Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/SetMem64Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibSse2/X64/CompareMem.S
MdePkg/Library/BaseMemoryLibSse2/X64/CopyMem.S
MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem16.S
MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem32.S
MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem64.S
MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem8.S
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem.S
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem16.S
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem32.S
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem64.S
MdePkg/Library/BaseMemoryLibSse2/X64/ZeroMem.S
MdePkg/Library/BaseMemoryLibSse2/ZeroMemWrapper.c
MdePkg/Library/PeiMemoryLib/CompareMemWrapper.c
MdePkg/Library/PeiMemoryLib/CopyMemWrapper.c
MdePkg/Library/PeiMemoryLib/MemLibGeneric.c
MdePkg/Library/PeiMemoryLib/MemLibGuid.c
MdePkg/Library/PeiMemoryLib/MemLibInternals.h
MdePkg/Library/PeiMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem32Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem64Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/PeiMemoryLib/SetMem16Wrapper.c
MdePkg/Library/PeiMemoryLib/SetMem32Wrapper.c
MdePkg/Library/PeiMemoryLib/SetMem64Wrapper.c
MdePkg/Library/PeiMemoryLib/SetMemWrapper.c
MdePkg/Library/PeiMemoryLib/ZeroMemWrapper.c
MdePkg/Library/UefiMemoryLib/CompareMemWrapper.c
MdePkg/Library/UefiMemoryLib/CopyMemWrapper.c
MdePkg/Library/UefiMemoryLib/MemLibGeneric.c
MdePkg/Library/UefiMemoryLib/MemLibGuid.c
MdePkg/Library/UefiMemoryLib/MemLibInternals.h
MdePkg/Library/UefiMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/UefiMemoryLib/ScanMem32Wrapper.c
MdePkg/Library/UefiMemoryLib/ScanMem64Wrapper.c
MdePkg/Library/UefiMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/UefiMemoryLib/SetMem16Wrapper.c
MdePkg/Library/UefiMemoryLib/SetMem32Wrapper.c
MdePkg/Library/UefiMemoryLib/SetMem64Wrapper.c
MdePkg/Library/UefiMemoryLib/SetMemWrapper.c
MdePkg/Library/UefiMemoryLib/ZeroMemWrapper.c

index 8eff3c050dd4a340e27b63559ca8271fd15a996c..278ef3369e80a6e73e685ff52a185e4cb161a1c1 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
   CompareMem() implementation.\r
-  \r
+\r
   The following BaseMemoryLib instances contain the same copy of this file:\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
 All rights reserved. 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
index 831e491b508893893f5a92b838d744d5a060c798..5077820be04751f4563ecb335291556d3fcbe9eb 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 84ca4d9a8b512f3261dd4686288f211faa4c5e27..e9e0f171ba0e9188ee2aee2069939c8a20716fe9 100644 (file)
@@ -4,9 +4,9 @@
   The following BaseMemoryLib instances contain the same copy of this file:\r
     BaseMemoryLib\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
 \r
 **/\r
 \r
-\r
-\r
-\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -50,7 +47,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -74,7 +71,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -147,7 +144,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -177,7 +174,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -207,7 +204,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -237,7 +234,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index b14abbc75a51f125a3a057bc33aee65fc153be68..b315ff5322ad1f16f1530c385984eacc277b1723 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 61024bef69f95c9088d7417c59f3b23da9610995..f40299b9caa026067741e2cd3d2411167c7c5813 100644 (file)
@@ -8,10 +8,8 @@
     BaseMemoryLibRepStr\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
-    PeiMemoryLib\r
-    DxeMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -30,7 +28,6 @@
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 \r
-\r
 /**\r
   Copy Length bytes from Source to Destination.\r
 \r
@@ -62,7 +59,7 @@ InternalMemCopyMem (
 VOID *\r
 EFIAPI\r
 InternalMemSetMem (\r
-  IN      VOID                      *Buffer,\r
+  OUT     VOID                      *Buffer,\r
   IN      UINTN                     Length,\r
   IN      UINT8                     Value\r
   );\r
@@ -71,7 +68,7 @@ InternalMemSetMem (
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -89,7 +86,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -107,7 +104,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -163,7 +160,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -182,7 +179,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -201,7 +198,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -220,7 +217,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index e7128e90d4eaa98b184ad1001a32fcf0b9dfd930..f8b3ab97637579560f4415fc93714fc33f2f3d93 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 7683910e809f78b4aa3f4b703566383acfcec368..d31b13f4d460b8c33afac1abd64c2427f77e2313 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index e3b268868104704a539087211a8f14c05ad7735f..6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index d17b3a7943c74620923e01e40e466b33f93a1df0..2add7849cd6240bf778257d692a8903fca4825c5 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 4e0bb8d0ea75aae30b5cfe1c791e2289aa2f172b..d74b80f05363377a0a1b709d3e1ee525bbe95924 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -22,9 +22,6 @@
 \r
 **/\r
 \r
-\r
-\r
-\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index db03525f3b8ea0ca341370bfe6ea7a994387ecce..dc84d2093add2c49c8aec52906703c17e6883418 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -22,9 +22,6 @@
 \r
 **/\r
 \r
-\r
-\r
-\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index 5010df671cfc4804eafe1a7138aa8af703c1eda8..05dc453c3a0c12c07d0d45fba657a76b66a6a06d 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -22,9 +22,6 @@
 \r
 **/\r
 \r
-\r
-\r
-\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index 5197d077d8faab638d842af0e6ae84519fda2137..b6bc1f43871af40b6b7da1ee62d9142d960fdbe8 100644 (file)
@@ -2,7 +2,7 @@
   SetMem() implementation.\r
 \r
   The following BaseMemoryLib instances contain the same copy of this file:\r
-  \r
+\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 5f8df5b6192f8932e4241755d79ffff6d7fbd5a0..2923356f1368082722d5e1dcadd794fb2a3004e0 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
     \r
-  Copyright (c) 2006 - 2008 , Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009 , Intel Corporation<BR>\r
   All rights reserved. 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
index 3c8be6a76e1bd566824a9b0d7d5cc906dbe8f26a..278ef3369e80a6e73e685ff52a185e4cb161a1c1 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
 All rights reserved. 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
index 831e491b508893893f5a92b838d744d5a060c798..5077820be04751f4563ecb335291556d3fcbe9eb 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index b14abbc75a51f125a3a057bc33aee65fc153be68..b315ff5322ad1f16f1530c385984eacc277b1723 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 7e681eae427943d208b2c399aeef7eb3738e71a2..f40299b9caa026067741e2cd3d2411167c7c5813 100644 (file)
@@ -8,10 +8,8 @@
     BaseMemoryLibRepStr\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
-    PeiMemoryLib\r
-    DxeMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -34,8 +32,8 @@
   Copy Length bytes from Source to Destination.\r
 \r
   @param  DestinationBuffer Target of copy\r
-  @param  SourceBuffer Place to copy from\r
-  @param  Length Number of bytes to copy\r
+  @param  SourceBuffer      Place to copy from\r
+  @param  Length            Number of bytes to copy\r
 \r
   @return Destination\r
 \r
@@ -51,9 +49,9 @@ InternalMemCopyMem (
 /**\r
   Set Buffer to Value for Size bytes.\r
 \r
-  @param  Buffer Memory to set.\r
-  @param  Length Number of bytes to set\r
-  @param  Value Value of the set operation.\r
+  @param  Buffer   Memory to set.\r
+  @param  Length   Number of bytes to set\r
+  @param  Value    Value of the set operation.\r
 \r
   @return Buffer\r
 \r
@@ -70,7 +68,7 @@ InternalMemSetMem (
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -88,7 +86,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -106,7 +104,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -162,7 +160,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -181,7 +179,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -200,7 +198,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -219,7 +217,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index e7128e90d4eaa98b184ad1001a32fcf0b9dfd930..f8b3ab97637579560f4415fc93714fc33f2f3d93 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 7683910e809f78b4aa3f4b703566383acfcec368..d31b13f4d460b8c33afac1abd64c2427f77e2313 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index e3b268868104704a539087211a8f14c05ad7735f..6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index d17b3a7943c74620923e01e40e466b33f93a1df0..2add7849cd6240bf778257d692a8903fca4825c5 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 6d5d5c0e70dba2298c810e1b6943d6645247525c..d74b80f05363377a0a1b709d3e1ee525bbe95924 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 406c4ca084f29c7ddaa904b0f16df031e14a160a..dc84d2093add2c49c8aec52906703c17e6883418 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index d1d42a4902b004c96edc33724741f928d65a2eed..05dc453c3a0c12c07d0d45fba657a76b66a6a06d 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 18fbcdc18a9793b90568122fed2c5c1432f0b243..b6bc1f43871af40b6b7da1ee62d9142d960fdbe8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index c207db7dda2cb902a848552c0b9c2d8b9d3779cc..08a8dc6ff21c7caf2bca120874edb548bc0394e8 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINTN                     Length\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemCompareMem)\r
 ASM_PFX(InternalMemCompareMem):\r
-    push    rsi\r
-    push    rdi\r
-    mov     rsi, rcx\r
-    mov     rdi, rdx\r
-    mov     rcx, r8\r
+    pushq   %rsi\r
+    pushq   %rdi\r
+    movq    %rcx, %rsi \r
+    movq    %rdx, %rdi \r
+    movq    %r8, %rcx \r
     repe    cmpsb\r
-    movzx   rax, byte ptr [rsi - 1]\r
-    movzx   rdx, byte ptr [rdi - 1]\r
-    sub     rax, rdx\r
-    pop     rdi\r
-    pop     rsi\r
+    movzbq  -1(%rsi), %rax\r
+    movzbq  -1(%rdi), %rdx\r
+    subq    %rdx, %rax \r
+    popq    %rdi\r
+    popq    %rsi\r
     ret\r
 \r
index 3a336f7e98ab979a4f4ae2ae33b3a293c0c78928..94ca84603eb97383e81fea9bc412b7a364a96264 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINTN  Count\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemCopyMem)\r
 ASM_PFX(InternalMemCopyMem):\r
-    push    rsi\r
-    push    rdi\r
-    mov     rsi, rdx                    # rsi <- Source\r
-    mov     rdi, rcx                    # rdi <- Destination\r
-    lea     r9, [rsi + r8 - 1]          # r9 <- End of Source\r
-    cmp     rsi, rdi\r
-    mov     rax, rdi                    # rax <- Destination as return value\r
+    pushq   %rsi\r
+    pushq   %rdi\r
+    movq    %rdx, %rsi                  # rsi <- Source\r
+    movq    %rcx, %rdi                  # rdi <- Destination\r
+    leaq    -1(%rsi, %r8,), %r9         # r9 <- End of Source          \r
+    cmpq    %rdi, %rsi \r
+    movq    %rdi, %rax                  # rax <- Destination as return value\r
     jae     L0\r
-    cmp     r9, rdi\r
+    cmpq    %rdi, %r9\r
     jae     L_CopyBackward              # Copy backward if overlapped\r
 L0:\r
-    mov     rcx, r8\r
-    and     r8, 7\r
-    shr     rcx, 3                      # rcx <- # of Qwords to copy\r
+    movq    %r8, %rcx \r
+    andq    $7, %r8\r
+    shrq    $3, %rcx                    # rcx <- # of Qwords to copy\r
     jz      L_CopyBytes\r
-    movd    r10, mm0                    # (Save mm0 in r10)\r
+    movq    %mm0, %r10                  # (Save mm0 in r10) ; Why just save 32 bits?\r
 L1:\r
-    movq    mm0, [rsi]\r
-    movntq  [rdi], mm0\r
-    add     rsi, 8\r
-    add     rdi, 8\r
+    movq    (%rsi), %mm0\r
+    movntq  %mm0, (%rdi)\r
+    addq    $8, %rsi \r
+    addq    $8, %rdi\r
     loop    L1\r
     mfence\r
-    movd    mm0, r10                    # (Restore mm0)\r
+    movd    %r10, %mm0                  # (Restore mm0)\r
     jmp     L_CopyBytes\r
 L_CopyBackward:\r
-    mov     rsi, r9                     # rsi <- End of Source\r
-    lea     rdi, [rdi + r8 - 1]         # rdi <- End of Destination\r
+    movq    %r9, %rsi                   # rsi <- End of Source\r
+    leaq    -1(%rdi, %r8,), %rdi        # rdi <- End of Destination\r
     std                                 # set direction flag\r
 L_CopyBytes:\r
-    mov     rcx, r8\r
+    movq    %r8, %rcx \r
     rep     movsb                       # Copy bytes backward\r
     cld\r
-    pop     rdi\r
-    pop     rsi\r
+    popq    %rdi\r
+    popq    %rsi\r
     ret\r
index 140b0a40e5c25091d9dc4dad24fc1b99b46a8a36..6832324c470fe73512a54e5ab5c7c41794fd4b68 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT16                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem16)\r
 ASM_PFX(InternalMemScanMem16):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi \r
+    movq    %r8, %rax \r
+    movq    %rdx, %rcx \r
     repne   scasw\r
-    lea     rax, [rdi - 2]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    leaq    -2(%rdi), %rax\r
+    cmovnz  %rcx, %rax \r
+    popq    %rdi\r
     ret\r
 \r
index 9420725d5ea740d1174a2c68a84031b120392e5d..56ff2ea9be11c70ded55383d43505ba69800ba41 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT32                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem32)\r
 ASM_PFX(InternalMemScanMem32):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasd\r
-    lea     rax, [rdi - 4]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    pushq    %rdi\r
+    movq     %rcx, %rdi \r
+    movq     %r8, %rax \r
+    movq     %rdx, %rcx \r
+    repne    scasl\r
+    leaq     -4(%rdi), %rax\r
+    cmovnz   %rcx, %rax \r
+    popq     %rdi\r
     ret\r
 \r
index d39f17fac3c0febce62b061779e4c020d79e038d..bd5c3fc315e9d40a030281783845d6f36664f768 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT64                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem64)\r
 ASM_PFX(InternalMemScanMem64):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasq\r
-    lea     rax, [rdi - 8]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    pushq    %rdi\r
+    movq     %rcx, %rdi \r
+    movq     %r8, %rax \r
+    movq     %rdx, %rcx \r
+    repne    scasq\r
+    leaq     -8(%rdi), %rax\r
+    cmovnz   %rcx, %rax \r
+    popq     %rdi\r
     ret\r
index 74667a6200f8a532cd84dde58bcb3da00e356def..4a882a0721d6ae9e7066b60409e6b9b1b8957569 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT8                     Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem8)\r
 ASM_PFX(InternalMemScanMem8):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     rax, r8\r
-    repne   scasb\r
-    lea     rax, [rdi - 1]\r
-    cmovnz  rax, rcx                    # set rax to 0 if not found\r
-    pop     rdi\r
+    pushq    %rdi\r
+    movq     %rcx, %rdi \r
+    movq     %rdx, %rcx  \r
+    movq     %r8,   %rax \r
+    repne    scasb\r
+    leaq     -1(%rdi), %rax\r
+    cmovnz   %rcx, %rax                     # set rax to 0 if not found\r
+    popq     %rdi\r
     ret\r
 \r
index 814d20c7cee13652e02d6d568792396b99f3fa16..a29be89a1fe81c73a57f64facabeb8fafb1fc18f 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT8  Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem)\r
 ASM_PFX(InternalMemSetMem):\r
-    push    rdi\r
-    mov     rax, r8\r
-    mov     ah, al\r
-    movq    mm0, rax\r
-    mov     r8, rcx\r
-    mov     rdi, r8                     # rdi <- Buffer\r
-    mov     rcx, rdx\r
-    and     edx, 7\r
-    shr     rcx, 3\r
+    push    %rdi\r
+    movq    %r8, %rax\r
+    movb    %al, %ah\r
+    movq    %rax, %mm0\r
+    movq    %rcx, %r8\r
+    movq    %r8, %rdi                     # rdi <- Buffer\r
+    movq    %rdx, %rcx\r
+    andq    $7, %rdx \r
+    shrq    $3, %rcx\r
     jz      L_SetBytes\r
-    pshufw  mm0, mm0, 0x0\r
+    .byte   0x0f, 0x70, 0x0C0, 0x00\r
 L0:\r
-    movntq  [rdi], mm0\r
-    add     rdi, 8\r
+    movntq  %mm0, (%rdi) \r
+    addq    $8, %rdi\r
     loop    L0\r
     mfence\r
 L_SetBytes:\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    mov     rax, r8\r
-    pop     rdi\r
+    movl    %edx, %ecx\r
+    rep       stosb\r
+    movq    %r8, %rax\r
+    pop     %rdi\r
     ret\r
 \r
index e3e66203146b34f364fe6614f594ebf5f390fe84..6ae6793a7e6eed2c3ba29d70757b0b0c8fdf1b92 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT16 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem16)\r
 ASM_PFX(InternalMemSetMem16):\r
-    push    rdi\r
-    mov     rax, r8\r
-    movq    mm0, rax\r
-    mov     r8, rcx\r
-    mov     rdi, r8\r
-    mov     rcx, rdx\r
-    and     edx, 3\r
-    shr     rcx, 2\r
-    jz      L_SetWords\r
-    pshufw  mm0, mm0, 0x0\r
+    pushq    %rdi\r
+    movq     %r8, %rax \r
+    movq     %rax, %mm0 \r
+    movq     %rcx, %r8 \r
+    movq     %r8, %rdi \r
+    movq     %rdx, %rcx \r
+    andl     $3, %edx \r
+    shrq     $2, %rcx\r
+    jz       L_SetWords\r
+    .byte    0x0f, 0x70, 0x0C0, 0x00\r
 L0:\r
-    movntq  [rdi], mm0\r
-    add     rdi, 8\r
-    loop    L0\r
+    movntq   %mm0, (%rdi) \r
+    addq     $8, %rdi \r
+    loop     L0\r
     mfence\r
 L_SetWords:\r
-    mov     ecx, edx\r
+    movl    %edx, %ecx \r
     rep     stosw\r
-    mov     rax, r8\r
-    pop     rdi\r
+    movq    %r8, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index a67ca6a843b820aa345f58f801137daf45b0bfa0..c983e6d9c1370b8b7a62cd7afa80992b7d0b7903 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT32 Value\r
 #    );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem32)\r
 ASM_PFX(InternalMemSetMem32):\r
-    movq    mm0, r8                     # mm0 <- Value\r
-    mov     rax, rcx                    # rax <- Buffer\r
-    xchg    rcx, rdx                    # rcx <- Count  rdx <- Buffer\r
-    shr     rcx, 1                      # rcx <- # of qwords to set\r
+    movq    %r8, %mm0                   # mm0 <- Value\r
+    movq    %rcx, %rax                  # rax <- Buffer\r
+    xchgq   %rdx, %rcx                  # rcx <- Count  rdx <- Buffer\r
+    shrq    $1, % rcx                   # rcx <- # of qwords to set\r
     jz      L_SetDwords\r
-    pshufw  mm0, mm0, 0x44\r
+   .byte    0x0f, 0x70, 0x0C0, 0x44\r
 L0:\r
-    movntq  [rdx], mm0\r
-    lea     rdx, [rdx + 8]              # use "lea" to avoid flag changes\r
+    movntq  %mm0, (%rdx) \r
+    leaq    8(%rdx), %rdx               # use "lea" to avoid flag changes\r
     loop    L0\r
     mfence\r
 L_SetDwords:\r
     jnc     L1\r
-    movd    [rdx], mm0\r
+    movd    %mm0, (%rdx) \r
 L1:\r
     ret\r
 \r
index 36312d4e7e1fc0bd1522076dc4b0ee84b2d246a2..10135f8496ee3763830a44faf5475db5174ee21b 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT64 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem64)\r
 ASM_PFX(InternalMemSetMem64):\r
-    movq    mm0, r8                     #Value\r
-    mov     rax, rcx                    #rax <- Buffer\r
-    xchg    rcx, rdx                    #rcx <- Count\r
+    movq      %r8, %mm0                 #Value\r
+    movw      %rcx, %rax                #rax <- Buffer\r
+    xchg      %rdx, %rcx                #rcx <- Count\r
 L0:\r
-    movntq  [rdx], mm0\r
-    add     rdx, 8\r
+    movntq  %mm0, (%rdx) \r
+    addq    $8, %rdx\r
     loop    L0\r
     mfence\r
     ret\r
index b5dec030316615d06e4bcccd2c8209ef94cb950d..4ea751f97a07105b06f69dcbfd92886eb612f4d7 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINTN  Count\r
 #    );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemZeroMem)\r
 ASM_PFX(InternalMemZeroMem):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     r8, rdi\r
-    and     edx, 7\r
-    shr     rcx, 3\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %rdi, %r8\r
+    andq    $7, %rdx\r
+    shrq    $3, %rcx\r
     jz      L_ZeroBytes\r
-    pxor    mm0, mm0\r
+    pxor    %mm0, %mm0\r
 L0:\r
-    movntq  [rdi], mm0\r
-    add     rdi, 8\r
+    movntq  %mm0, (%rdi)\r
+    addq    $8, %rdi\r
     loop    L0\r
     mfence\r
 L_ZeroBytes:\r
-    xor     eax, eax\r
-    mov     ecx, edx\r
+    xorl    %eax, %eax\r
+    movl    %edx, %ecx\r
     rep     stosb\r
-    mov     rax, r8\r
-    pop     rdi\r
+    movq    %r8, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index 5f8df5b6192f8932e4241755d79ffff6d7fbd5a0..2923356f1368082722d5e1dcadd794fb2a3004e0 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
     \r
-  Copyright (c) 2006 - 2008 , Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009 , Intel Corporation<BR>\r
   All rights reserved. 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
index 3c8be6a76e1bd566824a9b0d7d5cc906dbe8f26a..278ef3369e80a6e73e685ff52a185e4cb161a1c1 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
 All rights reserved. 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
index 831e491b508893893f5a92b838d744d5a060c798..5077820be04751f4563ecb335291556d3fcbe9eb 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index b14abbc75a51f125a3a057bc33aee65fc153be68..b315ff5322ad1f16f1530c385984eacc277b1723 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 9ecc390ac882679a35bdc7b55fea625b384cea47..f40299b9caa026067741e2cd3d2411167c7c5813 100644 (file)
@@ -8,10 +8,8 @@
     BaseMemoryLibRepStr\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
-    PeiMemoryLib\r
-    DxeMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -30,7 +28,6 @@
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 \r
-\r
 /**\r
   Copy Length bytes from Source to Destination.\r
 \r
@@ -52,9 +49,9 @@ InternalMemCopyMem (
 /**\r
   Set Buffer to Value for Size bytes.\r
 \r
-  @param  Buffer  Memory to set.\r
-  @param  Length  Number of bytes to set\r
-  @param  Value   Value of the set operation.\r
+  @param  Buffer   Memory to set.\r
+  @param  Length   Number of bytes to set\r
+  @param  Value    Value of the set operation.\r
 \r
   @return Buffer\r
 \r
@@ -71,7 +68,7 @@ InternalMemSetMem (
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -89,7 +86,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -107,7 +104,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -163,7 +160,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -182,7 +179,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -201,7 +198,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -220,7 +217,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index e7128e90d4eaa98b184ad1001a32fcf0b9dfd930..f8b3ab97637579560f4415fc93714fc33f2f3d93 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 7683910e809f78b4aa3f4b703566383acfcec368..d31b13f4d460b8c33afac1abd64c2427f77e2313 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index e3b268868104704a539087211a8f14c05ad7735f..6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index d17b3a7943c74620923e01e40e466b33f93a1df0..2add7849cd6240bf778257d692a8903fca4825c5 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 6beb40bd83154e4cb9f0209ec64be7801ed5fdff..d74b80f05363377a0a1b709d3e1ee525bbe95924 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem16() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
-  The following BaseMemoryLib instances contains the same copy of this file:\r
-\r
+  The following BaseMemoryLib instances contain the same copy of this file:\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
-\r
-**/\r
+    UefiMemoryLib\r
 \r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 0a0ce8270689af2176ea2ba4552ad6fbf6748794..dc84d2093add2c49c8aec52906703c17e6883418 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem32() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
-\r
-**/\r
+    UefiMemoryLib\r
 \r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 10ef6827648c9080a291346656da93d6a0cdd2bf..05dc453c3a0c12c07d0d45fba657a76b66a6a06d 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem64() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
-\r
-**/\r
+    UefiMemoryLib\r
 \r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 18fbcdc18a9793b90568122fed2c5c1432f0b243..b6bc1f43871af40b6b7da1ee62d9142d960fdbe8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index c207db7dda2cb902a848552c0b9c2d8b9d3779cc..4f73686f30f14bed7992c84022f0a544173fed2e 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      CONST VOID                *SourceBuffer,\r
 #   IN      UINTN                     Length\r
 #   );\r
-#------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
+#------------------------------------------------------------------------------ \r
 ASM_GLOBAL ASM_PFX(InternalMemCompareMem)\r
 ASM_PFX(InternalMemCompareMem):\r
-    push    rsi\r
-    push    rdi\r
-    mov     rsi, rcx\r
-    mov     rdi, rdx\r
-    mov     rcx, r8\r
+    pushq   %rsi\r
+    pushq   %rdi\r
+    movq    %rcx, %rsi\r
+    movq    %rdx, %rdi\r
+    movq    %r8, %rcx\r
     repe    cmpsb\r
-    movzx   rax, byte ptr [rsi - 1]\r
-    movzx   rdx, byte ptr [rdi - 1]\r
-    sub     rax, rdx\r
-    pop     rdi\r
-    pop     rsi\r
+    movzbq  -1(%rsi) , %rax\r
+    movzbq  -1(%rdi) , %rdx\r
+    sub     %dl, %al\r
+    popq    %rdi\r
+    popq    %rsi\r
     ret\r
 \r
index c05e50aa9d9411bf79b2b4ee6492130f5c646375..a516df61220872148a2fff0769d17cb92d8a7dca 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINTN  Count\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemCopyMem)\r
 ASM_PFX(InternalMemCopyMem):\r
-    push    rsi\r
-    push    rdi\r
-    mov     rsi, rdx                    # rsi <- Source\r
-    mov     rdi, rcx                    # rdi <- Destination\r
-    lea     r9, [rsi + r8 - 1]          # r9 <- Last byte of Source\r
-    cmp     rsi, rdi\r
-    mov     rax, rdi                    # rax <- Destination as return value\r
+    pushq   %rsi\r
+    pushq   %rdi\r
+    movq    %rdx, %rsi                  # rsi <- Source\r
+    movq    %rcx, %rdi                  # rdi <- Destination\r
+    leaq    -1(%rsi,%r8,), %r9          # r9 <- Last byte of Source      \r
+    cmpq    %rdi, %rsi\r
+    movq    %rdi, %rax                  # rax <- Destination as return value\r
     jae     L0                          # Copy forward if Source > Destination\r
-    cmp     r9, rdi                     # Overlapped?\r
-    jae     L_CopyBackward               # Copy backward if overlapped\r
+    cmpq    %rdi, %r9                   # Overlapped?\r
+    jae     L_CopyBackward              # Copy backward if overlapped\r
 L0:\r
-    xor     rcx, rcx\r
-    sub     rcx, rdi                    # rcx <- -rdi\r
-    and     rcx, 15                     # rcx + rsi should be 16 bytes aligned\r
+    xorq    %rcx, %rcx\r
+    subq    %rdi, %rcx                  # rcx <- -rdi\r
+    andq    $15, %rcx                   # rcx + rsi should be 16 bytes aligned\r
     jz      L1                          # skip if rcx == 0\r
-    cmp     rcx, r8\r
-    cmova   rcx, r8\r
-    sub     r8, rcx\r
+    cmpq    %r8, %rcx\r
+    cmova   %r8, %rcx\r
+    subq    %rcx, %r8\r
     rep     movsb\r
 L1:\r
-    mov     rcx, r8\r
-    and     r8, 15\r
-    shr     rcx, 4                      # rcx <- # of DQwords to copy\r
+    movq    %r8,  %rcx\r
+    andq    $15, %r8\r
+    shrq    $4, %rcx                    # rcx <- # of DQwords to copy\r
     jz      L_CopyBytes\r
-    movdqa  [rsp + 0x18], xmm0           # save xmm0 on stack\r
+    movdqu  %xmm0, 0x18(%rsp)           # save xmm0 on stack\r
 L2:\r
-    movdqu  xmm0, [rsi]                 # rsi may not be 16-byte aligned\r
-    movntdq [rdi], xmm0                 # rdi should be 16-byte aligned\r
-    add     rsi, 16\r
-    add     rdi, 16\r
+    movdqu  (%rsi), %xmm0               # rsi may not be 16-byte aligned\r
+    movntdq %xmm0, (%rdi)               # rdi should be 16-byte aligned\r
+    addq    $16, %rsi\r
+    addq    $16, %rdi\r
     loop    L2\r
     mfence\r
-    movdqa  xmm0, [rsp + 0x18]           # restore xmm0\r
+    movdqa  0x18(%rsp), %xmm0            # restore xmm0\r
     jmp     L_CopyBytes                  # copy remaining bytes\r
 L_CopyBackward:\r
-    mov     rsi, r9                     # rsi <- Last byte of Source\r
-    lea     rdi, [rdi + r8 - 1]         # rdi <- Last byte of Destination\r
+    movq    %r9, %rsi                   # rsi <- Last byte of Source\r
+    leaq     -1(%rdi, %r8,), %rdi       # rdi <- Last byte of Destination\r
     std\r
 L_CopyBytes:\r
-    mov     rcx, r8\r
+    movq    %r8, %rcx\r
     rep     movsb\r
     cld\r
-    pop     rdi\r
-    pop     rsi\r
+    popq    %rdi\r
+    popq    %rsi\r
     ret\r
index 140b0a40e5c25091d9dc4dad24fc1b99b46a8a36..24055dc8c052ea1ca639c9f7919259431df867f6 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 # CONST VOID *\r
 # EFIAPI\r
 # InternalMemScanMem16 (\r
-#   IN      CONST VOID                *Buffer,\r
+#   IN      CONST VOID          *Buffer,\r
 #   IN      UINTN                     Length,\r
 #   IN      UINT16                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem16)\r
 ASM_PFX(InternalMemScanMem16):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
+    pushq  %rdi\r
+    movq   %rcx, %rdi\r
+    movq   %r8, %rax\r
+    movq   %rdx, %rcx\r
     repne   scasw\r
-    lea     rax, [rdi - 2]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    leaq    -2(%rdi), %rax\r
+    cmovnz  %rcx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index 9420725d5ea740d1174a2c68a84031b120392e5d..b7a588496672711bfc2536f38b6e85a392ac2b34 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT32                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem32)\r
 ASM_PFX(InternalMemScanMem32):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasd\r
-    lea     rax, [rdi - 4]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    movq    %rdx, %rcx\r
+    repne   scasl\r
+    leaq    -4(%rdi), %rax\r
+    cmovnz  %rcx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index d39f17fac3c0febce62b061779e4c020d79e038d..c1a9d4b25347e4f7c1f378e0cb5363732f417432 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 # CONST VOID *\r
 # EFIAPI\r
 # InternalMemScanMem64 (\r
-#   IN      CONST VOID                *Buffer,\r
+#   IN      CONST VOID          *Buffer,\r
 #   IN      UINTN                     Length,\r
 #   IN      UINT64                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem64)\r
 ASM_PFX(InternalMemScanMem64):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    movq    %rdx, %rcx\r
     repne   scasq\r
-    lea     rax, [rdi - 8]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    leaq    -8(%rdi), %rax\r
+    cmovnz  %rcx, %rax\r
+    popq    %rdi\r
     ret\r
index 74667a6200f8a532cd84dde58bcb3da00e356def..d2d8bb5d9b6e5b1b2ad6d634653d51eccddaec7f 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 # CONST VOID *\r
 # EFIAPI\r
 # InternalMemScanMem8 (\r
-#   IN      CONST VOID                *Buffer,\r
-#   IN      UINTN                     Length,\r
-#   IN      UINT8                     Value\r
+#   IN      CONST VOID          *Buffer,\r
+#   IN      UINTN               Length,\r
+#   IN      UINT8               Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem8)\r
 ASM_PFX(InternalMemScanMem8):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     rax, r8\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
     repne   scasb\r
-    lea     rax, [rdi - 1]\r
-    cmovnz  rax, rcx                    # set rax to 0 if not found\r
-    pop     rdi\r
+    leaq    -1(%rdi), %rax\r
+    cmovnz  %rcx, %rax                  # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index c7c07ad30900694ac097f036ada7093ba3732cd2..fc8efdeaec6c24b4890028cde50ce5309e585766 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT8  Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem)\r
 ASM_PFX(InternalMemSetMem):\r
-    push    rdi\r
-    push    rbx\r
-    push    rcx         # push Buffer\r
-    mov     rax, r8     # rax = Value\r
-    and     rax, 0xff   # rax = lower 8 bits of r8, upper 56 bits are 0\r
-    mov     ah,  al     # ah  = al\r
-    mov     bx,  ax     # bx  = ax\r
-    shl     rax, 0x10   # rax = ax << 16\r
-    mov     ax,  bx     # ax  = bx\r
-    mov     rbx, rax    # ebx = eax\r
-    shl     rax, 0x20   # rax = rax << 32\r
-    or      rax, rbx    # eax = ebx\r
-    mov     rdi, rcx    # rdi = Buffer\r
-    mov     rcx, rdx    # rcx = Count\r
-    shr     rcx, 3      # rcx = rcx / 8\r
+    pushq   %rdi\r
+    pushq   %rbx\r
+    pushq   %rcx        # push Buffer\r
+    movq    %r8, %rax   # rax = Value\r
+    andq    $0xff, %rax # rax = lower 8 bits of r8, upper 56 bits are 0\r
+    movb    %al, %ah    # ah  = al\r
+    movw    %ax, %bx    # bx  = ax\r
+    shlq    $0x10, %rax # rax = ax << 16\r
+    movw    %bx,  %ax   # ax  = bx\r
+    movq    %rax, %rbx  # ebx = eax\r
+    shlq    $0x20, %rax # rax = rax << 32\r
+    orq     %rbx, %rax  # eax = ebx\r
+    movq    %rcx, %rdi  # rdi = Buffer\r
+    movq    %rdx, %rcx  # rcx = Count\r
+    shrq    $3, %rcx    # rcx = rcx / 8\r
     cld\r
     rep     stosq \r
-    mov     rcx, rdx    # rcx = rdx\r
-    and     rcx, 7      # rcx = rcx & 7\r
+    movq    %rdx, %rcx  # rcx = rdx\r
+    andq    $7, %rcx    # rcx = rcx & 7\r
     rep     stosb \r
-    pop     rax         # rax = Buffer\r
-    pop     rbx\r
-    pop     rdi\r
+    popq    %rax        # rax = Buffer\r
+    popq    %rbx\r
+    popq    %rdi\r
     ret\r
index c091131a759126cbd74d11ab0695a53fa3410522..af63e42b63a4631e9cf52c873feaf8d093a45b22 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT16 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem16)\r
 ASM_PFX(InternalMemSetMem16):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    xchg    %rdx, %rcx\r
     rep     stosw\r
-    mov     rax, rdx\r
-    pop     rdi\r
+    movq    %rdx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index 9fbcdafcb4336fea90610dc85a400f3e8ad036c8..93d705c6749ccb1c2064b983055360ffdf35f6f2 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT32 Value\r
 #    );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem32)\r
 ASM_PFX(InternalMemSetMem32):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosd\r
-    mov     rax, rdx\r
-    pop     rdi\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    xchgq   %rdx, %rcx\r
+    rep     stosl\r
+    movq    %rdx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index c4f0b4685d2e76123e53ba9139da6bfb59fc0586..306077a1fa254d55e39d3ea4c95c0789a59fa0c3 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT64 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem64)\r
 ASM_PFX(InternalMemSetMem64):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    xchg    %rdx, %rcx\r
     rep     stosq\r
-    mov     rax, rdx\r
-    pop     rdi\r
+    movq    %rdx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index 6cd1474420fcab6f1e9943d84708e55d776fb376..49cef3878b5fc31f6350ffa2411c0ed1a384a517 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINTN  Count\r
 #    );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemZeroMem)\r
 ASM_PFX(InternalMemZeroMem):\r
-    push    rdi\r
-    push    rcx\r
-    xor     rax, rax\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    shr     rcx, 3\r
-    and     rdx, 7\r
+    pushq   %rdi\r
+    pushq   %rcx\r
+    xorq    %rax, %rax\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    shrq    $3, %rcx\r
+    andq    $7, %rdx\r
     cld\r
     rep     stosq\r
-    mov     rcx, rdx\r
+    movq    %rdx, %rcx\r
     rep     stosb\r
-    pop     rax\r
-    pop     rdi\r
+    popq    %rax\r
+    popq    %rdi\r
     ret\r
 \r
index ea5280357f365d7dfae48669f75b1f105d42c5a2..2923356f1368082722d5e1dcadd794fb2a3004e0 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
     \r
-  Copyright (c) 2006 - 2008 , Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009 , Intel Corporation<BR>\r
   All rights reserved. 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
@@ -48,8 +48,5 @@ ZeroMem (
 {\r
   ASSERT (!(Buffer == NULL && Length > 0));\r
   ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));\r
-  if (Length == 0) {\r
-    return Buffer;\r
-  }\r
   return InternalMemZeroMem (Buffer, Length);\r
 }\r
index 6922177a023f58237753d88e95b4eead4113c355..278ef3369e80a6e73e685ff52a185e4cb161a1c1 100644 (file)
@@ -2,7 +2,6 @@
   CompareMem() implementation.\r
 \r
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
@@ -10,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
 All rights reserved. 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
index 831e491b508893893f5a92b838d744d5a060c798..5077820be04751f4563ecb335291556d3fcbe9eb 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index b14abbc75a51f125a3a057bc33aee65fc153be68..b315ff5322ad1f16f1530c385984eacc277b1723 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 5861244c16caa5e23683cc58002e569ac86e8bad..f40299b9caa026067741e2cd3d2411167c7c5813 100644 (file)
@@ -8,10 +8,8 @@
     BaseMemoryLibRepStr\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
-    PeiMemoryLib\r
-    DxeMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 \r
-\r
 /**\r
   Copy Length bytes from Source to Destination.\r
 \r
   @param  DestinationBuffer Target of copy\r
-  @param  SourceBuffer Place to copy from\r
-  @param  Length Number of bytes to copy\r
+  @param  SourceBuffer      Place to copy from\r
+  @param  Length            Number of bytes to copy\r
 \r
   @return Destination\r
 \r
@@ -52,9 +49,9 @@ InternalMemCopyMem (
 /**\r
   Set Buffer to Value for Size bytes.\r
 \r
-  @param  Buffer Memory to set.\r
-  @param  Length Number of bytes to set\r
-  @param  Value Value of the set operation.\r
+  @param  Buffer   Memory to set.\r
+  @param  Length   Number of bytes to set\r
+  @param  Value    Value of the set operation.\r
 \r
   @return Buffer\r
 \r
@@ -71,7 +68,7 @@ InternalMemSetMem (
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -89,7 +86,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -107,7 +104,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -163,7 +160,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -182,7 +179,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -201,7 +198,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -220,7 +217,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index e7128e90d4eaa98b184ad1001a32fcf0b9dfd930..f8b3ab97637579560f4415fc93714fc33f2f3d93 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 7683910e809f78b4aa3f4b703566383acfcec368..d31b13f4d460b8c33afac1abd64c2427f77e2313 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index e3b268868104704a539087211a8f14c05ad7735f..6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index d17b3a7943c74620923e01e40e466b33f93a1df0..2add7849cd6240bf778257d692a8903fca4825c5 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 3388eda8e56f2cb05aa9d0248845c7c9140d1f08..d74b80f05363377a0a1b709d3e1ee525bbe95924 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem16() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
-\r
-**/\r
+    UefiMemoryLib\r
 \r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 0a0ce8270689af2176ea2ba4552ad6fbf6748794..dc84d2093add2c49c8aec52906703c17e6883418 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem32() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
-\r
-**/\r
+    UefiMemoryLib\r
 \r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 10ef6827648c9080a291346656da93d6a0cdd2bf..05dc453c3a0c12c07d0d45fba657a76b66a6a06d 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem64() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
-\r
-**/\r
+    UefiMemoryLib\r
 \r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 18fbcdc18a9793b90568122fed2c5c1432f0b243..b6bc1f43871af40b6b7da1ee62d9142d960fdbe8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index c207db7dda2cb902a848552c0b9c2d8b9d3779cc..bdae1741407d870db98be115b3afdfafd44f4635 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINTN                     Length\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemCompareMem)\r
 ASM_PFX(InternalMemCompareMem):\r
-    push    rsi\r
-    push    rdi\r
-    mov     rsi, rcx\r
-    mov     rdi, rdx\r
-    mov     rcx, r8\r
+    pushq   %rsi\r
+    pushq   %rdi\r
+    movq    %rcx, %rsi\r
+    movq    %rdx, %rdi\r
+    movq    %r8, %rcx\r
     repe    cmpsb\r
-    movzx   rax, byte ptr [rsi - 1]\r
-    movzx   rdx, byte ptr [rdi - 1]\r
-    sub     rax, rdx\r
-    pop     rdi\r
-    pop     rsi\r
+    movzbq  -1(%rsi) , %rax\r
+    movzbq  -1(%rdi) , %rdx\r
+    subq    %rdx, %rax\r
+    popq    %rdi\r
+    popq    %rsi\r
     ret\r
 \r
index 2ab574621e4d568dd371b4b4a816553f0b10eb43..82f74116b25d0833a6d50f43da929ed93ac7189c 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINTN  Count\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemCopyMem)\r
 ASM_PFX(InternalMemCopyMem):\r
-    push    rsi\r
-    push    rdi\r
-    mov     rsi, rdx                    # rsi <- Source\r
-    mov     rdi, rcx                    # rdi <- Destination\r
-    lea     r9, [rsi + r8 - 1]          # r9 <- End of Source\r
-    cmp     rsi, rdi\r
-    mov     rax, rdi                    # rax <- Destination as return value\r
+    pushq   %rsi\r
+    pushq   %rdi\r
+    movq    %rdx, %rsi                  # rsi <- Source\r
+    movq    %rcx, %rdi                  # rdi <- Destination\r
+    leaq    -1(%rsi, %r8,), %r9         # r9 <- End of Source\r
+    cmpq    %rdi, %rsi\r
+    movq    %rdi, %rax                  # rax <- Destination as return value\r
     jae     _InternalMemCopyMem_al_0000\r
-    cmp     r9, rdi\r
+    cmpq    %rdi, %r9\r
     jae     _atSym_CopyBackward         # Copy backward if overlapped\r
 _InternalMemCopyMem_al_0000:\r
-    mov     rcx, r8\r
-    and     r8, 7\r
-    shr     rcx, 3\r
+    movq    %r8, %rcx\r
+    andq    $7, %r8\r
+    shrq    $3, %rcx\r
     rep     movsq                       # Copy as many Qwords as possible\r
     jmp     _atSym_CopyBytes\r
 _atSym_CopyBackward:\r
-    mov     rsi, r9                     # rsi <- End of Source\r
-    lea     rdi, [rdi + r8 - 1]         # esi <- End of Destination\r
+    movq    %r9, %rsi                   # rsi <- End of Source\r
+    leaq    -1(%rdi, %r8), %rdi         # rdi <- End of Destination\r
     std                                 # set direction flag\r
 _atSym_CopyBytes:\r
-    mov     rcx, r8\r
+    movq    %r8, %rcx\r
     rep     movsb                       # Copy bytes backward\r
     cld\r
-    pop     rdi\r
-    pop     rsi\r
+    popq    %rdi\r
+    popq    %rsi\r
     ret\r
 \r
index 140b0a40e5c25091d9dc4dad24fc1b99b46a8a36..c60998b38c5c39db1d4f5949af3451979ecab12f 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT16                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem16)\r
 ASM_PFX(InternalMemScanMem16):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
     repne   scasw\r
-    lea     rax, [rdi - 2]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    leaq    -2(%rdi), %rax\r
+    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index 9420725d5ea740d1174a2c68a84031b120392e5d..f863cfe4bb560bdf86f50282062082ed536df593 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT32                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem32)\r
 ASM_PFX(InternalMemScanMem32):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasd\r
-    lea     rax, [rdi - 4]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
+    repne   scasl\r
+    leaq    -4(%rdi), %rax\r
+    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index 917c37c3c5b6064d63d84accbf7e0275ad98ae38..9bc02b06b2fae9cd0a870ffd68c3fa3647847349 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT64                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem64)\r
 ASM_PFX(InternalMemScanMem64):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
     repne   scasq\r
-    lea     rax, [rdi - 8]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    leaq    -8(%rdi), %rax\r
+    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index 74667a6200f8a532cd84dde58bcb3da00e356def..ded53c37b83060eb729491b35e7a94c25b6599e5 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT8                     Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem8)\r
 ASM_PFX(InternalMemScanMem8):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     rax, r8\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
     repne   scasb\r
-    lea     rax, [rdi - 1]\r
-    cmovnz  rax, rcx                    # set rax to 0 if not found\r
-    pop     rdi\r
+    leaq    -1(%rdi), %rax\r
+    cmovnz  %rcx, %rax                  # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index cae41c3cab7d8b9273205e17549dd6fe146a874e..695802a8f40c765c67022f944f253e4f738dc0ba 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT8  Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem)\r
 ASM_PFX(InternalMemSetMem):\r
-    push    rdi\r
-    mov     rax, r8    # rax = Value\r
-    mov     rdi, rcx   # rdi = Buffer\r
-    xchg    rcx, rdx   # rcx = Count, rdx = Buffer\r
+    pushq   %rdi\r
+    movq    %r8, %rax    # rax = Value\r
+    movq    %rcx, %rdi   # rdi = Buffer\r
+    xchgq   %rdx, %rcx   # rcx = Count, rdx = Buffer\r
     rep     stosb\r
-    mov     rax, rdx   # rax = Buffer\r
-    pop     rdi\r
+    movq    %rdx, %rax   # rax = Buffer\r
+    popq    %rdi\r
     ret\r
 \r
index c091131a759126cbd74d11ab0695a53fa3410522..35486df8cfae4610f7e5d0e1fc7e2dbae0b9e902 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT16 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem16)\r
 ASM_PFX(InternalMemSetMem16):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    xchgq   %rdx, %rcx\r
     rep     stosw\r
-    mov     rax, rdx\r
-    pop     rdi\r
+    movq    %rdx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index 9fbcdafcb4336fea90610dc85a400f3e8ad036c8..93d705c6749ccb1c2064b983055360ffdf35f6f2 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT32 Value\r
 #    );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem32)\r
 ASM_PFX(InternalMemSetMem32):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosd\r
-    mov     rax, rdx\r
-    pop     rdi\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    xchgq   %rdx, %rcx\r
+    rep     stosl\r
+    movq    %rdx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index c4f0b4685d2e76123e53ba9139da6bfb59fc0586..5b2f088c96104ad852dfabce205e2e336897a7d5 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT64 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem64)\r
 ASM_PFX(InternalMemSetMem64):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    xchgq   %rdx, %rcx\r
     rep     stosq\r
-    mov     rax, rdx\r
-    pop     rdi\r
+    movw    %rdx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index 73bb786943624d0f1b2eba15aed2e9383941543f..2fd6249249db66e76939742842d3bcdb9dae5730 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINTN  Count\r
 #    );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemZeroMem)\r
 ASM_PFX(InternalMemZeroMem):\r
-    push    rdi\r
-    push    rcx\r
-    xor     rax, rax\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    shr     rcx, 3\r
-    and     rdx, 7\r
+    pushq   %rdi\r
+    pushq   %rcx\r
+    xorq    %rax, %rax\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    shrq    $3, %rcx\r
+    andq    $7, %rdx\r
     rep     stosq\r
-    mov     ecx, edx\r
+    movl    %edx, %ecx\r
     rep     stosb\r
-    pop     rax\r
-    pop     rdi\r
+    popq    %rax\r
+    popq    %rdi\r
     ret\r
 \r
index 11187ba13a271d72f0746cfbdb86d5cc809cec3e..2923356f1368082722d5e1dcadd794fb2a3004e0 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
     \r
-  Copyright (c) 2006 - 2008 , Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009 , Intel Corporation<BR>\r
   All rights reserved. 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
@@ -48,6 +48,5 @@ ZeroMem (
 {\r
   ASSERT (!(Buffer == NULL && Length > 0));\r
   ASSERT (Length <= (MAX_ADDRESS - (UINTN)Buffer + 1));\r
-  \r
   return InternalMemZeroMem (Buffer, Length);\r
 }\r
index 688c2108b88be86ba8caf24e81c2483432b3c127..278ef3369e80a6e73e685ff52a185e4cb161a1c1 100644 (file)
@@ -9,16 +9,16 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
+Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+All rights reserved. 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
+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
index 831e491b508893893f5a92b838d744d5a060c798..5077820be04751f4563ecb335291556d3fcbe9eb 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index b14abbc75a51f125a3a057bc33aee65fc153be68..b315ff5322ad1f16f1530c385984eacc277b1723 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 5861244c16caa5e23683cc58002e569ac86e8bad..f40299b9caa026067741e2cd3d2411167c7c5813 100644 (file)
@@ -8,10 +8,8 @@
     BaseMemoryLibRepStr\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
-    PeiMemoryLib\r
-    DxeMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 \r
-\r
 /**\r
   Copy Length bytes from Source to Destination.\r
 \r
   @param  DestinationBuffer Target of copy\r
-  @param  SourceBuffer Place to copy from\r
-  @param  Length Number of bytes to copy\r
+  @param  SourceBuffer      Place to copy from\r
+  @param  Length            Number of bytes to copy\r
 \r
   @return Destination\r
 \r
@@ -52,9 +49,9 @@ InternalMemCopyMem (
 /**\r
   Set Buffer to Value for Size bytes.\r
 \r
-  @param  Buffer Memory to set.\r
-  @param  Length Number of bytes to set\r
-  @param  Value Value of the set operation.\r
+  @param  Buffer   Memory to set.\r
+  @param  Length   Number of bytes to set\r
+  @param  Value    Value of the set operation.\r
 \r
   @return Buffer\r
 \r
@@ -71,7 +68,7 @@ InternalMemSetMem (
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -89,7 +86,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -107,7 +104,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -163,7 +160,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -182,7 +179,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -201,7 +198,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -220,7 +217,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index e7128e90d4eaa98b184ad1001a32fcf0b9dfd930..f8b3ab97637579560f4415fc93714fc33f2f3d93 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 7683910e809f78b4aa3f4b703566383acfcec368..d31b13f4d460b8c33afac1abd64c2427f77e2313 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index e3b268868104704a539087211a8f14c05ad7735f..6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index d17b3a7943c74620923e01e40e466b33f93a1df0..2add7849cd6240bf778257d692a8903fca4825c5 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 4e0bb8d0ea75aae30b5cfe1c791e2289aa2f172b..d74b80f05363377a0a1b709d3e1ee525bbe95924 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -22,9 +22,6 @@
 \r
 **/\r
 \r
-\r
-\r
-\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index db03525f3b8ea0ca341370bfe6ea7a994387ecce..dc84d2093add2c49c8aec52906703c17e6883418 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -22,9 +22,6 @@
 \r
 **/\r
 \r
-\r
-\r
-\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index 5010df671cfc4804eafe1a7138aa8af703c1eda8..05dc453c3a0c12c07d0d45fba657a76b66a6a06d 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -22,9 +22,6 @@
 \r
 **/\r
 \r
-\r
-\r
-\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index 18fbcdc18a9793b90568122fed2c5c1432f0b243..b6bc1f43871af40b6b7da1ee62d9142d960fdbe8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index c207db7dda2cb902a848552c0b9c2d8b9d3779cc..781c5b92482a29324c613221df9e44eb512288af 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 # INTN\r
 # EFIAPI\r
 # InternalMemCompareMem (\r
-#   IN      CONST VOID                *DestinationBuffer,\r
-#   IN      CONST VOID                *SourceBuffer,\r
+#   IN      CONST VOID          *DestinationBuffer,\r
+#   IN      CONST VOID          *SourceBuffer,\r
 #   IN      UINTN                     Length\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemCompareMem)\r
 ASM_PFX(InternalMemCompareMem):\r
-    push    rsi\r
-    push    rdi\r
-    mov     rsi, rcx\r
-    mov     rdi, rdx\r
-    mov     rcx, r8\r
+    pushq   %rsi\r
+    pushq   %rdi\r
+    movq    %rcx, %rsi\r
+    movq    %rdx, %rdi\r
+    movq    %r8, %rcx\r
     repe    cmpsb\r
-    movzx   rax, byte ptr [rsi - 1]\r
-    movzx   rdx, byte ptr [rdi - 1]\r
-    sub     rax, rdx\r
-    pop     rdi\r
-    pop     rsi\r
+    movzbq  -1(%rsi) , %rax\r
+    movzbq  -1(%rdi) , %rdx\r
+    subq    %rdx, %rax\r
+    popq    %rdi\r
+    popq    %rsi\r
     ret\r
 \r
index 4477006e41e47a112d70974686ce1617d8e2881d..5eb1d4654779b34592741334039300850b919dca 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINTN  Count\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemCopyMem)\r
 ASM_PFX(InternalMemCopyMem):\r
-    push    rsi\r
-    push    rdi\r
-    mov     rsi, rdx                    # rsi <- Source\r
-    mov     rdi, rcx                    # rdi <- Destination\r
-    lea     r9, [rsi + r8 - 1]          # r9 <- End of Source\r
-    cmp     rsi, rdi\r
-    mov     rax, rdi                    # rax <- Destination as return value\r
+    pushq   %rsi\r
+    pushq   %rdi\r
+    movq    %rdx, %rsi                  # rsi <- Source\r
+    movq    %rcx, %rdi                  # rdi <- Destination\r
+    leaq    -1(%rsi, %r8,), %r9         # r9 <- End of Source\r
+    cmpq    %rdi, %rsi\r
+    movq    %rdi, %rax                  # rax <- Destination as return value\r
     jae     L0\r
-    cmp     r9, rdi\r
+    cmpq    %rdi, %r9\r
     jae     L_CopyBackward               # Copy backward if overlapped\r
 L0:\r
-    mov     rcx, r8\r
-    and     r8, 7\r
-    shr     rcx, 3\r
+    movq    %r8, %rcx\r
+    andq    $7, %r8\r
+    shrq    $3, %rcx\r
     rep     movsq                       # Copy as many Qwords as possible\r
     jmp     L_CopyBytes\r
 L_CopyBackward:\r
-    mov     rsi, r9                     # rsi <- End of Source\r
-    lea     rdi, [rdi + r8 - 1]         # esi <- End of Destination\r
+    movq    %r9, %rsi                   # rsi <- End of Source\r
+    leaq    -1(%rdi, %r8),  %rdi        # esi <- End of Destination\r
     std                                 # set direction flag\r
 L_CopyBytes:\r
-    mov     rcx, r8\r
+    movq    %r8, %rcx\r
     rep     movsb                       # Copy bytes backward\r
     cld\r
-    pop     rdi\r
-    pop     rsi\r
+    popq    %rdi\r
+    popq    %rsi\r
     ret\r
 \r
index 140b0a40e5c25091d9dc4dad24fc1b99b46a8a36..c60998b38c5c39db1d4f5949af3451979ecab12f 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT16                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem16)\r
 ASM_PFX(InternalMemScanMem16):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
     repne   scasw\r
-    lea     rax, [rdi - 2]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    leaq    -2(%rdi), %rax\r
+    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index 9420725d5ea740d1174a2c68a84031b120392e5d..f863cfe4bb560bdf86f50282062082ed536df593 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT32                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem32)\r
 ASM_PFX(InternalMemScanMem32):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasd\r
-    lea     rax, [rdi - 4]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
+    repne   scasl\r
+    leaq    -4(%rdi), %rax\r
+    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index 917c37c3c5b6064d63d84accbf7e0275ad98ae38..9bc02b06b2fae9cd0a870ffd68c3fa3647847349 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT64                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem64)\r
 ASM_PFX(InternalMemScanMem64):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
     repne   scasq\r
-    lea     rax, [rdi - 8]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    leaq    -8(%rdi), %rax\r
+    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index 74667a6200f8a532cd84dde58bcb3da00e356def..ded53c37b83060eb729491b35e7a94c25b6599e5 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT8                     Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem8)\r
 ASM_PFX(InternalMemScanMem8):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     rax, r8\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
     repne   scasb\r
-    lea     rax, [rdi - 1]\r
-    cmovnz  rax, rcx                    # set rax to 0 if not found\r
-    pop     rdi\r
+    leaq    -1(%rdi), %rax\r
+    cmovnz  %rcx, %rax                  # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index cae41c3cab7d8b9273205e17549dd6fe146a874e..838f223fd6d2b14b95bec44e82ee0c0ce32f2ea1 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT8  Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem)\r
 ASM_PFX(InternalMemSetMem):\r
-    push    rdi\r
-    mov     rax, r8    # rax = Value\r
-    mov     rdi, rcx   # rdi = Buffer\r
-    xchg    rcx, rdx   # rcx = Count, rdx = Buffer\r
+    pushq   %rdi\r
+    movq    %r8, %rax      # rax = Value\r
+    movq    %rcx, %rdi     # rdi = Buffer\r
+    xchgq   %rdx, %rcx     # rcx = Count, rdx = Buffer\r
     rep     stosb\r
-    mov     rax, rdx   # rax = Buffer\r
-    pop     rdi\r
+    movq    %rdx, %rax     # rax = Buffer\r
+    popq    %rdi\r
     ret\r
 \r
index c091131a759126cbd74d11ab0695a53fa3410522..35486df8cfae4610f7e5d0e1fc7e2dbae0b9e902 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT16 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem16)\r
 ASM_PFX(InternalMemSetMem16):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    xchgq   %rdx, %rcx\r
     rep     stosw\r
-    mov     rax, rdx\r
-    pop     rdi\r
+    movq    %rdx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index 9fbcdafcb4336fea90610dc85a400f3e8ad036c8..93d705c6749ccb1c2064b983055360ffdf35f6f2 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT32 Value\r
 #    );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem32)\r
 ASM_PFX(InternalMemSetMem32):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosd\r
-    mov     rax, rdx\r
-    pop     rdi\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    xchgq   %rdx, %rcx\r
+    rep     stosl\r
+    movq    %rdx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index c4f0b4685d2e76123e53ba9139da6bfb59fc0586..4c404dfaea8097e4db54313254f960c548efb19d 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT64 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem64)\r
 ASM_PFX(InternalMemSetMem64):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %r8, %rax\r
+    xchgq   %rdx, %rcx\r
     rep     stosq\r
-    mov     rax, rdx\r
-    pop     rdi\r
+    movq    %rdx, %rax\r
+    popq    %rdi\r
     ret\r
 \r
index 73bb786943624d0f1b2eba15aed2e9383941543f..2fd6249249db66e76939742842d3bcdb9dae5730 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINTN  Count\r
 #    );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemZeroMem)\r
 ASM_PFX(InternalMemZeroMem):\r
-    push    rdi\r
-    push    rcx\r
-    xor     rax, rax\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    shr     rcx, 3\r
-    and     rdx, 7\r
+    pushq   %rdi\r
+    pushq   %rcx\r
+    xorq    %rax, %rax\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    shrq    $3, %rcx\r
+    andq    $7, %rdx\r
     rep     stosq\r
-    mov     ecx, edx\r
+    movl    %edx, %ecx\r
     rep     stosb\r
-    pop     rax\r
-    pop     rdi\r
+    popq    %rax\r
+    popq    %rdi\r
     ret\r
 \r
index 5f8df5b6192f8932e4241755d79ffff6d7fbd5a0..2923356f1368082722d5e1dcadd794fb2a3004e0 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
     \r
-  Copyright (c) 2006 - 2008 , Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009 , Intel Corporation<BR>\r
   All rights reserved. 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
index 3c8be6a76e1bd566824a9b0d7d5cc906dbe8f26a..278ef3369e80a6e73e685ff52a185e4cb161a1c1 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
 All rights reserved. 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
index 831e491b508893893f5a92b838d744d5a060c798..5077820be04751f4563ecb335291556d3fcbe9eb 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index b14abbc75a51f125a3a057bc33aee65fc153be68..b315ff5322ad1f16f1530c385984eacc277b1723 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 5861244c16caa5e23683cc58002e569ac86e8bad..f40299b9caa026067741e2cd3d2411167c7c5813 100644 (file)
@@ -8,10 +8,8 @@
     BaseMemoryLibRepStr\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
-    PeiMemoryLib\r
-    DxeMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 \r
-\r
 /**\r
   Copy Length bytes from Source to Destination.\r
 \r
   @param  DestinationBuffer Target of copy\r
-  @param  SourceBuffer Place to copy from\r
-  @param  Length Number of bytes to copy\r
+  @param  SourceBuffer      Place to copy from\r
+  @param  Length            Number of bytes to copy\r
 \r
   @return Destination\r
 \r
@@ -52,9 +49,9 @@ InternalMemCopyMem (
 /**\r
   Set Buffer to Value for Size bytes.\r
 \r
-  @param  Buffer Memory to set.\r
-  @param  Length Number of bytes to set\r
-  @param  Value Value of the set operation.\r
+  @param  Buffer   Memory to set.\r
+  @param  Length   Number of bytes to set\r
+  @param  Value    Value of the set operation.\r
 \r
   @return Buffer\r
 \r
@@ -71,7 +68,7 @@ InternalMemSetMem (
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -89,7 +86,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -107,7 +104,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -163,7 +160,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -182,7 +179,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -201,7 +198,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -220,7 +217,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index e7128e90d4eaa98b184ad1001a32fcf0b9dfd930..f8b3ab97637579560f4415fc93714fc33f2f3d93 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 7683910e809f78b4aa3f4b703566383acfcec368..d31b13f4d460b8c33afac1abd64c2427f77e2313 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index e3b268868104704a539087211a8f14c05ad7735f..6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index d17b3a7943c74620923e01e40e466b33f93a1df0..2add7849cd6240bf778257d692a8903fca4825c5 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 4e0bb8d0ea75aae30b5cfe1c791e2289aa2f172b..d74b80f05363377a0a1b709d3e1ee525bbe95924 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -22,9 +22,6 @@
 \r
 **/\r
 \r
-\r
-\r
-\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index db03525f3b8ea0ca341370bfe6ea7a994387ecce..dc84d2093add2c49c8aec52906703c17e6883418 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -22,9 +22,6 @@
 \r
 **/\r
 \r
-\r
-\r
-\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index 5010df671cfc4804eafe1a7138aa8af703c1eda8..05dc453c3a0c12c07d0d45fba657a76b66a6a06d 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -22,9 +22,6 @@
 \r
 **/\r
 \r
-\r
-\r
-\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
index 18fbcdc18a9793b90568122fed2c5c1432f0b243..b6bc1f43871af40b6b7da1ee62d9142d960fdbe8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index c207db7dda2cb902a848552c0b9c2d8b9d3779cc..bdae1741407d870db98be115b3afdfafd44f4635 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINTN                     Length\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemCompareMem)\r
 ASM_PFX(InternalMemCompareMem):\r
-    push    rsi\r
-    push    rdi\r
-    mov     rsi, rcx\r
-    mov     rdi, rdx\r
-    mov     rcx, r8\r
+    pushq   %rsi\r
+    pushq   %rdi\r
+    movq    %rcx, %rsi\r
+    movq    %rdx, %rdi\r
+    movq    %r8, %rcx\r
     repe    cmpsb\r
-    movzx   rax, byte ptr [rsi - 1]\r
-    movzx   rdx, byte ptr [rdi - 1]\r
-    sub     rax, rdx\r
-    pop     rdi\r
-    pop     rsi\r
+    movzbq  -1(%rsi) , %rax\r
+    movzbq  -1(%rdi) , %rdx\r
+    subq    %rdx, %rax\r
+    popq    %rdi\r
+    popq    %rsi\r
     ret\r
 \r
index e5cfa7eadfcf85cffda571966d871e6abf4e3f90..8f8400e8acfe4a70ea66a42827550405e129f542 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINTN  Count\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemCopyMem)\r
 ASM_PFX(InternalMemCopyMem):\r
-    push    rsi\r
-    push    rdi\r
-    mov     rsi, rdx                    # rsi <- Source\r
-    mov     rdi, rcx                    # rdi <- Destination\r
-    lea     r9, [rsi + r8 - 1]          # r9 <- Last byte of Source\r
-    cmp     rsi, rdi                    \r
-    mov     rax, rdi                    # rax <- Destination as return value\r
+    pushq   %rsi\r
+    pushq   %rdi\r
+    movq    %rdx, %rsi                  # rsi <- Source\r
+    movq    %rcx, %rdi                  # rdi <- Destination\r
+    leaq    -1(%rsi, %r8,), %r9         # r9 <- Last byte of Source\r
+    cmpq    %rdi, %rsi\r
+    movq    %rdi, %rax                  # rax <- Destination as return value\r
     jae     L0                          # Copy forward if Source > Destination\r
-    cmp     r9, rdi                     # Overlapped?\r
+    cmpq    %rdi, %r9                   # Overlapped?\r
     jae     L_CopyBackward              # Copy backward if overlapped\r
 L0:            \r
-    xor     rcx, rcx                    \r
-    sub     rcx, rdi                    # rcx <- -rdi\r
-    and     rcx, 15                     # rcx + rsi should be 16 bytes aligned\r
+    xorq    %rcx, %rcx                    \r
+    subq    %rdi, %rcx                  # rcx <- -rdi\r
+    andq    $15, %rcx                   # rcx + rsi should be 16 bytes aligned\r
     jz      L1                          # skip if rcx == 0\r
-    cmp     rcx, r8\r
-    cmova   rcx, r8\r
-    sub     r8, rcx\r
+    cmpq    %r8, %rcx\r
+    cmova   %r8, %rcx\r
+    subq    %rcx, %r8\r
     rep     movsb\r
 L1:\r
-    mov     rcx, r8\r
-    and     r8, 15\r
-    shr     rcx, 4                      # rcx <- # of DQwords to copy\r
+    movq    %r8, %rcx\r
+    andq    $15, %r8\r
+    shrq    $4, %rcx                    # rcx <- # of DQwords to copy\r
     jz      L_CopyBytes\r
-    movdqa  [rsp + 0x18], xmm0          # save xmm0 on stack\r
+    movdqa  %xmm0, 0x18(%rsp)           # save xmm0 on stack\r
 L2:\r
-    movdqu  xmm0, [rsi]                 # rsi may not be 16-byte aligned\r
-    movntdq [rdi], xmm0                 # rdi should be 16-byte aligned\r
-    add     rsi, 16\r
-    add     rdi, 16\r
+    movdqu  (%rsi), %xmm0               # rsi may not be 16-byte aligned\r
+    movntdq  %xmm0, (%rdi)              # rdi should be 16-byte aligned\r
+    addq    $16, %rsi\r
+    addq    $16, %rdi\r
     loop    L2\r
     mfence\r
-    movdqa  xmm0, [rsp + 0x18]          # restore xmm0\r
+    movdqa  0x18(%rsp), %xmm0           # restore xmm0\r
     jmp     L_CopyBytes                 # copy remaining bytes\r
 L_CopyBackward:\r
-    mov     rsi, r9                     # rsi <- Last byte of Source\r
-    lea     rdi, [rdi + r8 - 1]         # rdi <- Last byte of Destination\r
+    movq    %r9, %rsi                   # rsi <- Last byte of Source\r
+    leaq    -1(%rdi, %r8,), %rdi        # rdi <- Last byte of Destination\r
     std\r
 L_CopyBytes:\r
-    mov     rcx, r8\r
+    movq    %r8, %rcx\r
     rep     movsb\r
     cld\r
-    pop     rdi\r
-    pop     rsi\r
+    popq    %rdi\r
+    popq    %rsi\r
     ret\r
index 140b0a40e5c25091d9dc4dad24fc1b99b46a8a36..c60998b38c5c39db1d4f5949af3451979ecab12f 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT16                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem16)\r
 ASM_PFX(InternalMemScanMem16):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
     repne   scasw\r
-    lea     rax, [rdi - 2]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    leaq    -2(%rdi), %rax\r
+    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index 9420725d5ea740d1174a2c68a84031b120392e5d..5eb3f9a931a50683af77efaddb0d2f9a0237e5bf 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 # CONST VOID *\r
 # EFIAPI\r
 # InternalMemScanMem32 (\r
-#   IN      CONST VOID                *Buffer,\r
+#   IN      CONST VOID          *Buffer,\r
 #   IN      UINTN                     Length,\r
 #   IN      UINT32                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem32)\r
 ASM_PFX(InternalMemScanMem32):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasd\r
-    lea     rax, [rdi - 4]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
+    repne   scasl\r
+    leaq    -4(%rdi), %rax\r
+    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index 917c37c3c5b6064d63d84accbf7e0275ad98ae38..22784ab27faa822f5d25f1573b49157b03f2fa76 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 # CONST VOID *\r
 # EFIAPI\r
 # InternalMemScanMem64 (\r
-#   IN      CONST VOID                *Buffer,\r
+#   IN      CONST VOID          *Buffer,\r
 #   IN      UINTN                     Length,\r
 #   IN      UINT64                    Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem64)\r
 ASM_PFX(InternalMemScanMem64):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
     repne   scasq\r
-    lea     rax, [rdi - 8]\r
-    cmovnz  rax, rcx\r
-    pop     rdi\r
+    leaq    -8(%rdi), %rax\r
+    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index 74667a6200f8a532cd84dde58bcb3da00e356def..de9cd8bd13bc88476ede4d499b0e59a3b8b36b2b 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #   IN      UINT8                     Value\r
 #   );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemScanMem8)\r
 ASM_PFX(InternalMemScanMem8):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     rax, r8\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdx, %rcx\r
+    movq    %r8, %rax\r
     repne   scasb\r
-    lea     rax, [rdi - 1]\r
-    cmovnz  rax, rcx                    # set rax to 0 if not found\r
-    pop     rdi\r
+    leaq    -1(%rdi), %rax\r
+    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
+    popq    %rdi\r
     ret\r
 \r
index d2c25420c1ae1a176ec54cd7366bb336b416b680..a17813a0ffcce4e3f65e09579f5cb84db2fea9c9 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT8  Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem)\r
 ASM_PFX(InternalMemSetMem):\r
-    push    rdi\r
-    mov     rdi, rcx                    # rdi <- Buffer\r
-    mov     al, r8b                     # al <- Value\r
-    mov     r9, rdi                     # r9 <- Buffer as return value\r
-    xor     rcx, rcx\r
-    sub     rcx, rdi\r
-    and     rcx, 15                     # rcx + rdi aligns on 16-byte boundary\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi                  # rdi <- Buffer\r
+    movb    %r8b, %al                   # al <- Value\r
+    movq    %rdi, %r9                   # r9 <- Buffer as return value\r
+    xorq    %rcx, %rcx\r
+    subq    %rdi, %rcx\r
+    andq    $15, %rcx                   # rcx + rdi aligns on 16-byte boundary\r
     jz      L0\r
-    cmp     rcx, rdx\r
-    cmova   rcx, rdx\r
-    sub     rdx, rcx\r
+    cmpq    %rdx, %rcx\r
+    cmova   %rdx, %rcx\r
+    subq    %rcx, %rdx\r
     rep     stosb\r
 L0:\r
-    mov     rcx, rdx\r
-    and     rdx, 15\r
-    shr     rcx, 4\r
+    movq    %rdx, %rcx\r
+    andq    $15, %rdx\r
+    shrq    $4, %rcx\r
     jz      L_SetBytes\r
-    mov     ah, al                      # ax <- Value repeats twice\r
-    movdqa  [rsp + 0x10], xmm0          # save xmm0\r
-    movd    xmm0, eax                   # xmm0[0..16] <- Value repeats twice\r
-    pshuflw xmm0, xmm0, 0               # xmm0[0..63] <- Value repeats 8 times\r
-    movlhps xmm0, xmm0                  # xmm0 <- Value repeats 16 times\r
+    movb    %al, %ah                    # ax <- Value repeats twice\r
+    movdqa  %xmm0, 0x10(%rsp)           # save xmm0\r
+    movd    %eax, %xmm0                 # xmm0[0..16] <- Value repeats twice\r
+    pshuflw $0, %xmm0, %xmm0            # xmm0[0..63] <- Value repeats 8 times\r
+    movlhps %xmm0, %xmm0                # xmm0 <- Value repeats 16 times\r
 L1:\r
-    movntdq [rdi], xmm0                 # rdi should be 16-byte aligned\r
-    add     rdi, 16\r
+    movntdq %xmm0, (%rdi)               # rdi should be 16-byte aligned\r
+    add     $16, %rdi\r
     loop    L1\r
     mfence\r
-    movdqa  xmm0, [rsp + 0x10]          # restore xmm0\r
+    movdqa  0x10(%rsp), %xmm0           # restore xmm0\r
 L_SetBytes:\r
-    mov     ecx, edx                    # high 32 bits of rcx are always zero\r
+    movl    %edx, %ecx                  # high 32 bits of rcx are always zero\r
     rep     stosb\r
-    mov     rax, r9                     # rax <- Return value\r
-    pop     rdi\r
+    movq    %r9, %rax                   # rax <- Return value\r
+    popq    %rdi\r
     ret\r
index 3da0efcb869f8f17804467c709bb100c2354d83b..fd66b192efa03580600bbab332d27e188180b9bc 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT16 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem16)\r
 ASM_PFX(InternalMemSetMem16):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     r9, rdi\r
-    xor     rcx, rcx\r
-    sub     rcx, rdi\r
-    and     rcx, 15\r
-    mov     rax, r8\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdi, %r9\r
+    xorq    %rcx, %rcx\r
+    subq    %rdi, %rcx\r
+    andq    $15, %rcx\r
+    movq    %r8, %rax\r
     jz      L0\r
-    shr     rcx, 1\r
-    cmp     rcx, rdx\r
-    cmova   rcx, rdx\r
-    sub     rdx, rcx\r
+    shrq    $1, %rcx\r
+    cmpq    %rdx, %rcx\r
+    cmova   %rdx, %rcx\r
+    subq    %rcx, %rdx\r
     rep     stosw\r
 L0:\r
-    mov     rcx, rdx\r
-    and     edx, 7\r
-    shr     rcx, 3\r
+    movq    %rdx, %rcx\r
+    andl    $7, %edx\r
+    shrq    $3, %rcx\r
     jz      L_SetWords\r
-    movd    xmm0, eax\r
-    pshuflw xmm0, xmm0, 0\r
-    movlhps xmm0, xmm0\r
+    movd    %eax, %xmm0\r
+    pshuflw $0, %xmm0, %xmm0\r
+    movlhps %xmm0, %xmm0\r
 L1:\r
-    movntdq [rdi], xmm0\r
-    add     rdi, 16\r
+    movntdq %xmm0, (%rdi)\r
+    addq    $16, %rdi\r
     loop    L1\r
     mfence\r
 L_SetWords:\r
-    mov     ecx, edx\r
+    movl    %edx, %ecx\r
     rep     stosw\r
-    mov     rax, r9\r
-    pop     rdi\r
+    movq    %r9, %rax\r
+    popq    %rdi\r
     ret\r
index ff6b0d7b4e649d69402fb2090c616151fbde1105..b8579d7bca94a01db4b8e55d011a63f911a071f0 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT32 Value\r
 #    );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem32)\r
 ASM_PFX(InternalMemSetMem32):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    mov     r9, rdi\r
-    xor     rcx, rcx\r
-    sub     rcx, rdi\r
-    and     rcx, 15\r
-    mov     rax, r8\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    movq    %rdi, %r9\r
+    xorq    %rcx, %rcx\r
+    subq    %rdi, %rcx\r
+    andq    $15, %rcx\r
+    movq    %r8, %rax\r
     jz      L0\r
-    shr     rcx, 2\r
-    cmp     rcx, rdx\r
-    cmova   rcx, rdx\r
-    sub     rdx, rcx\r
-    rep     stosd\r
+    shrq    $2, %rcx\r
+    cmpq    %rdx, %rcx\r
+    cmova   %rdx, %rcx\r
+    subq    %rcx, %rdx\r
+    rep     stosl\r
 L0:\r
-    mov     rcx, rdx\r
-    and     edx, 3\r
-    shr     rcx, 2\r
+    movq    %rdx, %rcx\r
+    andl    $3, %edx\r
+    shrq    $2, %rcx\r
     jz      L_SetDwords\r
-    movd    xmm0, eax\r
-    pshufd  xmm0, xmm0, 0\r
+    movd    %eax, %xmm0\r
+    pshufd  $0, %xmm0, %xmm0\r
 L1:\r
-    movntdq [rdi], xmm0\r
-    add     rdi, 16\r
+    movntdq %xmm0, (%rdi)\r
+    addq    $16, %rdi\r
     loop    L1\r
     mfence\r
 L_SetDwords:\r
-    mov     ecx, edx\r
-    rep     stosd\r
-    mov     rax, r9\r
-    pop     rdi\r
+    movl    %edx, %ecx\r
+    rep     stosl\r
+    movq    %r9, %rax\r
+    popq    %rdi\r
     ret\r
index adfbb0c42ecaeb80d3a15483ad66f3c5193bf066..a9565ce97a46a903d388d3f4225045cff7ab0164 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINT64 Value\r
 #    )\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemSetMem64)\r
 ASM_PFX(InternalMemSetMem64):\r
-    mov     rax, rcx                    # rax <- Buffer\r
-    xchg    rcx, rdx                    # rcx <- Count & rdx <- Buffer\r
-    test    dl, 8\r
-    movq    xmm0, r8\r
+    movq    %rcx, %rax                    # rax <- Buffer\r
+    xchgq   %rdx, %rcx                    # rcx <- Count & rdx <- Buffer\r
+    testb   $8, %dl\r
+    movq    %r8, %xmm0\r
     jz      L0\r
-    mov     [rdx], r8\r
-    add     rdx, 8\r
-    dec     rcx\r
+    movq    %r8, (%rdx)\r
+    addq    $8, %rdx\r
+    decq    %rcx\r
 L0:\r
-    shr     rcx, 1\r
+    shrq    $1, %rcx\r
     jz      L_SetQwords\r
-    movlhps xmm0, xmm0\r
+    movlhps %xmm0, %xmm0\r
 L1:\r
-    movntdq [rdx], xmm0\r
-    lea     rdx, [rdx + 16]\r
+    movntdq %xmm0, (%rdx)\r
+    leaq    16(%rdx), %rdx\r
     loop    L1\r
     mfence\r
 L_SetQwords:\r
     jnc     L2\r
-    mov     [rdx], r8\r
+    movq    %r8, (%rdx)\r
 L2:\r
     ret\r
 \r
index bb2a194544113c95c3570a727c8f4f8250271c4c..eafd155b6f1e3ceee886095ae91ed2b64e764163 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
 # All rights reserved. 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
 #    IN UINTN  Count\r
 #    );\r
 #------------------------------------------------------------------------------\r
-.intel_syntax noprefix\r
 ASM_GLOBAL ASM_PFX(InternalMemZeroMem)\r
 ASM_PFX(InternalMemZeroMem):\r
-    push    rdi\r
-    mov     rdi, rcx\r
-    xor     rcx, rcx\r
-    xor     eax, eax\r
-    sub     rcx, rdi\r
-    and     rcx, 15\r
-    mov     r8, rdi\r
+    pushq   %rdi\r
+    movq    %rcx, %rdi\r
+    xorq    %rcx, %rcx\r
+    xorl    %eax, %eax\r
+    subq    %rdi, %rcx\r
+    andq    $15, %rcx\r
+    movq    %rdi, %r8\r
     jz      L0\r
-    cmp     rcx, rdx\r
-    cmova   rcx, rdx\r
-    sub     rdx, rcx\r
+    cmpq    %rdx, %rcx\r
+    cmova   %rdx, %rcx\r
+    subq    %rcx, %rdx\r
     rep     stosb\r
 L0:\r
-    mov     rcx, rdx\r
-    and     edx, 15\r
-    shr     rcx, 4\r
+    movq    %rdx, %rcx\r
+    andl    $15, %edx\r
+    shrq    $4, %rcx\r
     jz      L_ZeroBytes\r
-    pxor    xmm0, xmm0\r
+    pxor    %xmm0, %xmm0\r
 L1:\r
-    movntdq [rdi], xmm0                 # rdi should be 16-byte aligned\r
-    add     rdi, 16\r
+    movntdq %xmm0, (%rdi)                 # rdi should be 16-byte aligned\r
+    addq    $16, %rdi\r
     loop    L1\r
     mfence\r
 L_ZeroBytes:\r
-    mov     ecx, edx\r
+    movl    %edx, %ecx\r
     rep     stosb\r
-    mov     rax, r8\r
-    pop     rdi\r
+    movq    %r8, %rax\r
+    popq    %rdi\r
     ret\r
index 5f8df5b6192f8932e4241755d79ffff6d7fbd5a0..2923356f1368082722d5e1dcadd794fb2a3004e0 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
     \r
-  Copyright (c) 2006 - 2008 , Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009 , Intel Corporation<BR>\r
   All rights reserved. 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
index c8513010b0ce2dc620f1426dcd4b376c7fba24e2..278ef3369e80a6e73e685ff52a185e4cb161a1c1 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
 All rights reserved. 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
index b7e8d7a6516f973c84e8f43df65fe25391b00582..5077820be04751f4563ecb335291556d3fcbe9eb 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   CopyMem() implementation.\r
-  \r
-  The following BaseMemoryLib instances contain the same copy of this file:\r
 \r
+  The following BaseMemoryLib instances contain the same copy of this file:\r
+  \r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index e5851a022cff532eca86f04c0097eff8dbea85b7..e9e0f171ba0e9188ee2aee2069939c8a20716fe9 100644 (file)
@@ -1,7 +1,12 @@
 /** @file\r
   Architecture Independent Base Memory Library Implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  The following BaseMemoryLib instances contain the same copy of this file:\r
+    BaseMemoryLib\r
+    PeiMemoryLib\r
+    UefiMemoryLib\r
+\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
   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
-  The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
-    BaseMemoryLib\r
-    PeiMemoryLib\r
-    DxeMemoryLib\r
-\r
 **/\r
 \r
 #include "MemLibInternals.h"\r
@@ -24,7 +23,7 @@
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -48,7 +47,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -72,7 +71,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -145,7 +144,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -175,7 +174,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -205,7 +204,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -235,7 +234,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index b14abbc75a51f125a3a057bc33aee65fc153be68..b315ff5322ad1f16f1530c385984eacc277b1723 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 11d846801a46ea7b3ba87d20ca24fc6b01e15872..fe20e39a539830242611894d08a3cee81a097242 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Declaration of internal functions for Base Memory Library.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
   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
-  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
-    DxeMemoryLib\r
-\r
 **/\r
 \r
 #ifndef __MEM_LIB_INTERNALS__\r
 #define __MEM_LIB_INTERNALS__\r
 \r
-\r
 #include <PiPei.h>\r
 \r
 #include <Library/BaseMemoryLib.h>\r
@@ -37,7 +25,7 @@
 /**\r
   Copies a source buffer to a destination buffer, and returns the destination buffer.\r
 \r
-  This function wraps the gPS->CopyMem ().\r
+  This function wraps the (*PeiServices)->CopyMem ().\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
@@ -57,10 +45,10 @@ InternalMemCopyMem (
 /**\r
   Fills a target buffer with a byte value, and returns the target buffer.\r
 \r
-  This function wraps the gPS->SetMem ().\r
+  This function wraps the (*PeiServices)->SetMem ().\r
   \r
   @param  Buffer    Memory to set.\r
-  @param  Size    Number of bytes to set.\r
+  @param  Size      Number of bytes to set.\r
   @param  Value     Value of the set operation.\r
 \r
   @return Buffer.\r
@@ -78,7 +66,7 @@ InternalMemSetMem (
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -96,7 +84,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -114,7 +102,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -170,7 +158,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -189,7 +177,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -208,7 +196,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -227,7 +215,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index e7128e90d4eaa98b184ad1001a32fcf0b9dfd930..f8b3ab97637579560f4415fc93714fc33f2f3d93 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 7683910e809f78b4aa3f4b703566383acfcec368..d31b13f4d460b8c33afac1abd64c2427f77e2313 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index e3b268868104704a539087211a8f14c05ad7735f..6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index cb20763b034476ab3d5e8308971eb9862edd742c..2add7849cd6240bf778257d692a8903fca4825c5 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
@@ -22,6 +22,7 @@
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
+\r
 #include "MemLibInternals.h"\r
 \r
 /**\r
@@ -56,6 +57,6 @@ ScanMem8 (
   }\r
   ASSERT (Buffer != NULL);\r
   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));\r
-\r
\r
   return (VOID*)InternalMemScanMem8 (Buffer, Length, Value);\r
 }\r
index 4c357b3b3df05054b6e940b7ce6c2425d8efc8cd..d74b80f05363377a0a1b709d3e1ee525bbe95924 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem16() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
@@ -19,7 +9,16 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
+\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index b3ce197f5e20954cf52dd7ba459fd5bdf3a2c659..dc84d2093add2c49c8aec52906703c17e6883418 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem32() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
@@ -19,7 +9,16 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
+\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 69c98da23874ac77bc8165ea29666a4a502b105f..05dc453c3a0c12c07d0d45fba657a76b66a6a06d 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem64() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
@@ -19,7 +9,16 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
+\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 18fbcdc18a9793b90568122fed2c5c1432f0b243..b6bc1f43871af40b6b7da1ee62d9142d960fdbe8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 5f8df5b6192f8932e4241755d79ffff6d7fbd5a0..2923356f1368082722d5e1dcadd794fb2a3004e0 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
     \r
-  Copyright (c) 2006 - 2008 , Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009 , Intel Corporation<BR>\r
   All rights reserved. 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
index 3c8be6a76e1bd566824a9b0d7d5cc906dbe8f26a..278ef3369e80a6e73e685ff52a185e4cb161a1c1 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
 All rights reserved. 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
index b7e8d7a6516f973c84e8f43df65fe25391b00582..5077820be04751f4563ecb335291556d3fcbe9eb 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   CopyMem() implementation.\r
-  \r
-  The following BaseMemoryLib instances contain the same copy of this file:\r
 \r
+  The following BaseMemoryLib instances contain the same copy of this file:\r
+  \r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index e5851a022cff532eca86f04c0097eff8dbea85b7..e9e0f171ba0e9188ee2aee2069939c8a20716fe9 100644 (file)
@@ -1,7 +1,12 @@
 /** @file\r
   Architecture Independent Base Memory Library Implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  The following BaseMemoryLib instances contain the same copy of this file:\r
+    BaseMemoryLib\r
+    PeiMemoryLib\r
+    UefiMemoryLib\r
+\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
   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
-  The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
-    BaseMemoryLib\r
-    PeiMemoryLib\r
-    DxeMemoryLib\r
-\r
 **/\r
 \r
 #include "MemLibInternals.h"\r
@@ -24,7 +23,7 @@
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -48,7 +47,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -72,7 +71,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -145,7 +144,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -175,7 +174,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -205,7 +204,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -235,7 +234,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index b14abbc75a51f125a3a057bc33aee65fc153be68..b315ff5322ad1f16f1530c385984eacc277b1723 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index a2531c7b1052ea93a535c3828a260079dc3125b4..77e80567c38bab241c848b48bd1bd1d2d78fd51a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Declaration of internal functions for Base Memory Library.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
   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
-  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
-    DxeMemoryLib\r
-\r
 **/\r
 \r
 #ifndef __MEM_LIB_INTERNALS__\r
 #define __MEM_LIB_INTERNALS__\r
 \r
-\r
 #include <Uefi.h>\r
 \r
-\r
 #include <Library/BaseMemoryLib.h>\r
+#include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/BaseLib.h>\r
 \r
 /**\r
   Copies a source buffer to a destination buffer, and returns the destination buffer.\r
@@ -79,7 +66,7 @@ InternalMemSetMem (
   Fills a target buffer with a 16-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 16-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -97,7 +84,7 @@ InternalMemSetMem16 (
   Fills a target buffer with a 32-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 32-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -115,7 +102,7 @@ InternalMemSetMem32 (
   Fills a target buffer with a 64-bit value, and returns the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to fill.\r
-  @param  Length  Number of bytes in Buffer to fill.\r
+  @param  Length  Count of 64-bit value to fill.\r
   @param  Value   Value with which to fill Length bytes of Buffer.\r
 \r
   @return Buffer\r
@@ -171,7 +158,7 @@ InternalMemCompareMem (
   matching 8-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 8-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -190,7 +177,7 @@ InternalMemScanMem8 (
   matching 16-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 16-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -209,7 +196,7 @@ InternalMemScanMem16 (
   matching 32-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 32-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
@@ -228,7 +215,7 @@ InternalMemScanMem32 (
   matching 64-bit value in the target buffer.\r
 \r
   @param  Buffer  Pointer to the target buffer to scan.\r
-  @param  Length  Number of bytes in Buffer to scan. Must be non-zero.\r
+  @param  Length  Count of 64-bit value to scan. Must be non-zero.\r
   @param  Value   Value to search for in the target buffer.\r
 \r
   @return Pointer to the first occurrence or NULL if not found.\r
index e7128e90d4eaa98b184ad1001a32fcf0b9dfd930..f8b3ab97637579560f4415fc93714fc33f2f3d93 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 7683910e809f78b4aa3f4b703566383acfcec368..d31b13f4d460b8c33afac1abd64c2427f77e2313 100644 (file)
@@ -9,9 +9,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index e3b268868104704a539087211a8f14c05ad7735f..6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index d17b3a7943c74620923e01e40e466b33f93a1df0..2add7849cd6240bf778257d692a8903fca4825c5 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 4c357b3b3df05054b6e940b7ce6c2425d8efc8cd..d74b80f05363377a0a1b709d3e1ee525bbe95924 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem16() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
@@ -19,7 +9,16 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
+\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 89cd42f22d0916edbda01888e4f9e1ac2fc24006..dc84d2093add2c49c8aec52906703c17e6883418 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem32() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-**/\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 8235924b544ef09a7f4a714073a8f3179f754b5e..05dc453c3a0c12c07d0d45fba657a76b66a6a06d 100644 (file)
@@ -1,17 +1,7 @@
 /** @file\r
   SetMem64() implementation.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. 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
   The following BaseMemoryLib instances contain the same copy of this file:\r
-\r
     BaseMemoryLib\r
     BaseMemoryLibMmx\r
     BaseMemoryLibSse2\r
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-**/\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
+  All rights reserved. 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
index 18fbcdc18a9793b90568122fed2c5c1432f0b243..b6bc1f43871af40b6b7da1ee62d9142d960fdbe8 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. 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
index 5f8df5b6192f8932e4241755d79ffff6d7fbd5a0..2923356f1368082722d5e1dcadd794fb2a3004e0 100644 (file)
@@ -10,9 +10,9 @@
     BaseMemoryLibOptDxe\r
     BaseMemoryLibOptPei\r
     PeiMemoryLib\r
-    DxeMemoryLib\r
+    UefiMemoryLib\r
     \r
-  Copyright (c) 2006 - 2008 , Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009 , Intel Corporation<BR>\r
   All rights reserved. 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