]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/BaseMemoryLibRepStr: Remove .S files for IA32 and X64 arch
authorShenglei Zhang <shenglei.zhang@intel.com>
Thu, 7 Mar 2019 01:08:43 +0000 (09:08 +0800)
committerLiming Gao <liming.gao@intel.com>
Wed, 3 Apr 2019 05:27:44 +0000 (13:27 +0800)
.nasm file has been added for X86 arch. .S assembly code
is not required any more.
https://bugzilla.tianocore.org/show_bug.cgi?id=1594

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
23 files changed:
MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/CompareMem.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/CopyMem.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem16.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem32.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem64.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem8.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem16.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem32.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem64.S [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/ZeroMem.S [deleted file]

index 049936deabd771cb198f57f03d1841c7ea54df77..7b315b8302ce0b5e7a0b691a9ad3794cfdf47913 100644 (file)
 \r
 [Sources.Ia32]\r
   Ia32/ScanMem64.nasm\r
-  Ia32/ScanMem64.S\r
   Ia32/ScanMem32.nasm\r
-  Ia32/ScanMem32.S\r
   Ia32/ScanMem16.nasm\r
-  Ia32/ScanMem16.S\r
   Ia32/ScanMem8.nasm\r
-  Ia32/ScanMem8.S\r
   Ia32/CompareMem.nasm\r
-  Ia32/CompareMem.S\r
   Ia32/ZeroMem.nasm\r
-  Ia32/ZeroMem.S\r
   Ia32/SetMem64.nasm\r
-  Ia32/SetMem64.S\r
   Ia32/SetMem32.nasm\r
-  Ia32/SetMem32.S\r
   Ia32/SetMem16.nasm\r
-  Ia32/SetMem16.S\r
   Ia32/SetMem.nasm\r
-  Ia32/SetMem.S\r
   Ia32/CopyMem.nasm\r
-  Ia32/CopyMem.S\r
   Ia32/ScanMem64.nasm\r
   Ia32/ScanMem32.nasm\r
   Ia32/ScanMem16.nasm\r
 \r
 [Sources.X64]\r
   X64/ScanMem64.nasm\r
-  X64/ScanMem64.S\r
   X64/ScanMem32.nasm\r
-  X64/ScanMem32.S\r
   X64/ScanMem16.nasm\r
-  X64/ScanMem16.S\r
   X64/ScanMem8.nasm\r
-  X64/ScanMem8.S\r
   X64/CompareMem.nasm\r
-  X64/CompareMem.S\r
   X64/ZeroMem.nasm\r
-  X64/ZeroMem.S\r
   X64/SetMem64.nasm\r
-  X64/SetMem64.S\r
   X64/SetMem32.nasm\r
-  X64/SetMem32.S\r
   X64/SetMem16.nasm\r
-  X64/SetMem16.S\r
   X64/SetMem.nasm\r
-  X64/SetMem.S\r
   X64/CopyMem.nasm\r
-  X64/CopyMem.S\r
   X64/ScanMem64.nasm\r
   X64/ScanMem32.nasm\r
   X64/ScanMem16.nasm\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.S
deleted file mode 100644 (file)
index b509586..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   CompareMem.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   CompareMem function\r
-#\r
-# Notes:\r
-#\r
-#   The following BaseMemoryLib instances contain the same copy of this file:\r
-#\r
-#       BaseMemoryLibRepStr\r
-#       BaseMemoryLibMmx\r
-#       BaseMemoryLibSse2\r
-#       BaseMemoryLibOptDxe\r
-#       BaseMemoryLibOptPei\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemCompareMem)\r
-\r
-#------------------------------------------------------------------------------\r
-# INTN\r
-# EFIAPI\r
-# InternalMemCompareMem (\r
-#   IN      CONST VOID                *DestinationBuffer,\r
-#   IN      CONST VOID                *SourceBuffer,\r
-#   IN      UINTN                     Length\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemCompareMem):\r
-    push    %esi\r
-    push    %edi\r
-    movl    12(%esp), %esi\r
-    movl    16(%esp), %edi\r
-    movl    20(%esp), %ecx\r
-    repe    cmpsb\r
-    movzbl  -1(%esi), %eax\r
-    movzbl  -1(%edi), %edx\r
-    subl    %edx, %eax\r
-    pop     %edi\r
-    pop     %esi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S
deleted file mode 100644 (file)
index 5aeef75..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   CopyMem.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   CopyMem function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemCopyMem)\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  EFIAPI\r
-#  InternalMemCopyMem (\r
-#    IN VOID   *Destination,\r
-#    IN VOID   *Source,\r
-#    IN UINTN  Count\r
-#    );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemCopyMem):\r
-    push    %esi\r
-    push    %edi\r
-    movl    16(%esp), %esi              # esi <- Source\r
-    movl    12(%esp), %edi              # edi <- Destination\r
-    movl    20(%esp), %edx              # edx <- Count\r
-    leal    -1(%esi, %edx), %eax        # eax <- End of Source\r
-    cmpl    %edi, %esi\r
-    jae     L0\r
-    cmpl    %edi, %eax\r
-    jae     L_CopyBackward              # Copy backward if overlapped\r
-L0:\r
-    movl    %edx, %ecx\r
-    andl    $3, %edx\r
-    shrl    $2, %ecx\r
-    rep\r
-    movsl                               # Copy as many Dwords as possible\r
-    jmp     L_CopyBytes\r
-L_CopyBackward:\r
-    movl    %eax, %esi                  # esi <- End of Source\r
-    leal    -1(%edi, %edx), %edi        # edi <- End of Destination\r
-    std\r
-L_CopyBytes:\r
-    movl    %edx, %ecx\r
-    rep\r
-    movsb                               # Copy bytes backward\r
-    cld\r
-    movl    12(%esp), %eax              # eax <- Destination as return value\r
-    pop     %edi\r
-    pop     %esi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.S
deleted file mode 100644 (file)
index 1977be7..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   ScanMem16.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   ScanMem16 function\r
-#\r
-# Notes:\r
-#\r
-#   The following BaseMemoryLib instances contain the same copy of this file:\r
-#\r
-#       BaseMemoryLibRepStr\r
-#       BaseMemoryLibMmx\r
-#       BaseMemoryLibSse2\r
-#       BaseMemoryLibOptDxe\r
-#       BaseMemoryLibOptPei\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemScanMem16)\r
-\r
-#------------------------------------------------------------------------------\r
-# CONST VOID *\r
-# EFIAPI\r
-# InternalMemScanMem16 (\r
-#   IN      CONST VOID                *Buffer,\r
-#   IN      UINTN                     Length,\r
-#   IN      UINT16                    Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemScanMem16):\r
-    push    %edi\r
-    movl    12(%esp), %ecx\r
-    movl    8(%esp), %edi\r
-    movl    16(%esp), %eax\r
-    repne   scasw\r
-    leal    -2(%edi), %eax\r
-    jz      L0\r
-    movl    %ecx, %eax\r
-L0:\r
-    pop     %edi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.S
deleted file mode 100644 (file)
index 9751b4a..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   ScanMem32.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   ScanMem32 function\r
-#\r
-# Notes:\r
-#\r
-#   The following BaseMemoryLib instances contain the same copy of this file:\r
-#\r
-#       BaseMemoryLibRepStr\r
-#       BaseMemoryLibMmx\r
-#       BaseMemoryLibSse2\r
-#       BaseMemoryLibOptDxe\r
-#       BaseMemoryLibOptPei\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemScanMem32)\r
-\r
-#------------------------------------------------------------------------------\r
-# CONST VOID *\r
-# EFIAPI\r
-# InternalMemScanMem32 (\r
-#   IN      CONST VOID                *Buffer,\r
-#   IN      UINTN                     Length,\r
-#   IN      UINT32                    Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemScanMem32):\r
-    push    %edi\r
-    movl    12(%esp), %ecx\r
-    movl    8(%esp), %edi\r
-    movl    16(%esp), %eax\r
-    repne   scasl\r
-    leal    -4(%edi), %eax\r
-    jz      L0\r
-    movl    %ecx, %eax\r
-L0:\r
-    pop     %edi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.S
deleted file mode 100644 (file)
index 3efc9b8..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   ScanMem64.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   ScanMem64 function\r
-#\r
-# Notes:\r
-#\r
-#   The following BaseMemoryLib instances contain the same copy of this file:\r
-#\r
-#       BaseMemoryLibRepStr\r
-#       BaseMemoryLibMmx\r
-#       BaseMemoryLibSse2\r
-#       BaseMemoryLibOptDxe\r
-#       BaseMemoryLibOptPei\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemScanMem64)\r
-\r
-#------------------------------------------------------------------------------\r
-# CONST VOID *\r
-# EFIAPI\r
-# InternalMemScanMem64 (\r
-#   IN      CONST VOID                *Buffer,\r
-#   IN      UINTN                     Length,\r
-#   IN      UINT64                    Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemScanMem64):\r
-    push    %edi\r
-    movl    12(%esp), %ecx\r
-    movl    16(%esp), %eax\r
-    movl    20(%esp), %edx\r
-    movl    8(%esp), %edi\r
-L0:\r
-    cmpl    (%edi), %eax\r
-    leal    8(%edi), %edi\r
-    loopne  L0\r
-    jne     L1\r
-    cmpl    -4(%edi), %edx\r
-    jecxz   L1\r
-    jne     L0\r
-L1:\r
-    leal    -8(%edi), %eax\r
-    jz      L2\r
-    movl    %ecx, %eax\r
-L2:\r
-    pop     %edi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
deleted file mode 100644 (file)
index f8d8b7a..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   ScanMem8.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   ScanMem8 function\r
-#\r
-# Notes:\r
-#\r
-#   The following BaseMemoryLib instances contain the same copy of this file:\r
-#\r
-#       BaseMemoryLibRepStr\r
-#       BaseMemoryLibMmx\r
-#       BaseMemoryLibSse2\r
-#       BaseMemoryLibOptDxe\r
-#       BaseMemoryLibOptPei\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemScanMem8)\r
-\r
-#------------------------------------------------------------------------------\r
-# CONST VOID *\r
-# EFIAPI\r
-# InternalMemScanMem8 (\r
-#   IN      CONST VOID                *Buffer,\r
-#   IN      UINTN                     Length,\r
-#   IN      UINT8                     Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemScanMem8):\r
-    push    %edi\r
-    movl    12(%esp), %ecx\r
-    movl    8(%esp), %edi\r
-    movb    16(%esp), %al\r
-    repne   scasb\r
-    leal    -1(%edi), %eax\r
-    jz      L0\r
-    movl    %ecx, %eax\r
-L0:\r
-    pop     %edi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S
deleted file mode 100644 (file)
index 9b1f1cb..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   SetMem.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   SetMem function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-    .code:\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemSetMem)\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  InternalMemSetMem (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Count,\r
-#    IN UINT8  Value\r
-#    )\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemSetMem):\r
-    push    %edi\r
-    movl    16(%esp),%eax\r
-    movl    8(%esp),%edi\r
-    movl    12(%esp),%ecx\r
-    rep\r
-    stosb\r
-    movl    8(%esp),%eax\r
-    pop     %edi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.S
deleted file mode 100644 (file)
index e35774a..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   SetMem16.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   SetMem16 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemSetMem16)\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  InternalMemSetMem16 (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Count,\r
-#    IN UINT16 Value\r
-#    )\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemSetMem16):\r
-    push    %edi\r
-    movl    16(%esp), %eax\r
-    movl    8(%esp), %edi\r
-    movl    12(%esp), %ecx\r
-    rep\r
-    stosw\r
-    movl    8(%esp), %eax\r
-    pop     %edi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.S
deleted file mode 100644 (file)
index 0a8b1c3..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   SetMem32.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   SetMem32 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemSetMem32)\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  InternalMemSetMem32 (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Count,\r
-#    IN UINT32 Value\r
-#    )\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemSetMem32):\r
-    push    %edi\r
-    movl    16(%esp),%eax\r
-    movl    8(%esp),%edi\r
-    movl    12(%esp),%ecx\r
-    rep\r
-    stosl\r
-    movl    8(%esp),%eax\r
-    pop     %edi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.S
deleted file mode 100644 (file)
index 2e4b7ce..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   SetMem64.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   SetMem64 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemSetMem64)\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  InternalMemSetMem64 (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Count,\r
-#    IN UINT64 Value\r
-#    )\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemSetMem64):\r
-    push    %edi\r
-    movl    12(%esp), %ecx\r
-    movl    16(%esp), %eax\r
-    movl    20(%esp), %edx\r
-    movl    8(%esp), %edi\r
-L0:\r
-    mov     %eax, -8(%edi, %ecx, 8)\r
-    mov     %edx, -4(%edi, %ecx, 8)\r
-    loop    L0\r
-    movl    %edi, %eax\r
-    pop     %edi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.S
deleted file mode 100644 (file)
index 86ba241..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   ZeroMem.Asm\r
-#\r
-# Abstract:\r
-#\r
-#   ZeroMem function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-ASM_GLOBAL ASM_PFX(InternalMemZeroMem)\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  InternalMemZeroMem (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Count\r
-#    );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(InternalMemZeroMem):\r
-    push    %edi\r
-    xorl    %eax,%eax\r
-    movl    8(%esp),%edi\r
-    movl    12(%esp),%ecx\r
-    movl    %ecx,%edx\r
-    shrl    $2,%ecx\r
-    andl    $3,%edx\r
-    pushl   %edi\r
-    rep\r
-    stosl\r
-    movl    %edx,%ecx\r
-    rep\r
-    stosb\r
-    popl    %eax\r
-    pop     %edi\r
-    ret\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/CompareMem.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/CompareMem.S
deleted file mode 100644 (file)
index 3087aea..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from CompareMem.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   CompareMem.S\r
-#\r
-# Abstract:\r
-#\r
-#   CompareMem function\r
-#\r
-# Notes:\r
-#\r
-#   The following BaseMemoryLib instances contain the same copy of this file:\r
-#\r
-#       BaseMemoryLibRepStr\r
-#       BaseMemoryLibMmx\r
-#       BaseMemoryLibSse2\r
-#       BaseMemoryLibOptDxe\r
-#       BaseMemoryLibOptPei\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-# INTN\r
-# EFIAPI\r
-# InternalMemCompareMem (\r
-#   IN      CONST VOID          *DestinationBuffer,\r
-#   IN      CONST VOID          *SourceBuffer,\r
-#   IN      UINTN                     Length\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemCompareMem)\r
-ASM_PFX(InternalMemCompareMem):\r
-    pushq   %rsi\r
-    pushq   %rdi\r
-    movq    %rcx, %rsi\r
-    movq    %rdx, %rdi\r
-    movq    %r8, %rcx\r
-    repe    cmpsb\r
-    movzbq  -1(%rsi) , %rax\r
-    movzbq  -1(%rdi) , %rdx\r
-    subq    %rdx, %rax\r
-    popq    %rdi\r
-    popq    %rsi\r
-    ret\r
-\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/CopyMem.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/CopyMem.S
deleted file mode 100644 (file)
index 4d7a7d0..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from CopyMem.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   CopyMem.S\r
-#\r
-# Abstract:\r
-#\r
-#   CopyMem function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  EFIAPI\r
-#  InternalMemCopyMem (\r
-#    IN VOID   *Destination,\r
-#    IN VOID   *Source,\r
-#    IN UINTN  Count\r
-#    )\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemCopyMem)\r
-ASM_PFX(InternalMemCopyMem):\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
-    cmpq    %rdi, %r9\r
-    jae     L_CopyBackward               # Copy backward if overlapped\r
-L0:\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
-    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
-    movq    %r8, %rcx\r
-    rep     movsb                       # Copy bytes backward\r
-    cld\r
-    popq    %rdi\r
-    popq    %rsi\r
-    ret\r
-\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem16.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem16.S
deleted file mode 100644 (file)
index 282dc3c..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from ScanMem16.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   ScanMem16.S\r
-#\r
-# Abstract:\r
-#\r
-#   ScanMem16 function\r
-#\r
-# Notes:\r
-#\r
-#   The following BaseMemoryLib instances contain the same copy of this file:\r
-#\r
-#       BaseMemoryLibRepStr\r
-#       BaseMemoryLibMmx\r
-#       BaseMemoryLibSse2\r
-#       BaseMemoryLibOptDxe\r
-#       BaseMemoryLibOptPei\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-# CONST VOID *\r
-# EFIAPI\r
-# InternalMemScanMem16 (\r
-#   IN      CONST VOID                *Buffer,\r
-#   IN      UINTN                     Length,\r
-#   IN      UINT16                    Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemScanMem16)\r
-ASM_PFX(InternalMemScanMem16):\r
-    pushq   %rdi\r
-    movq    %rcx, %rdi\r
-    movq    %rdx, %rcx\r
-    movq    %r8, %rax\r
-    repne   scasw\r
-    leaq    -2(%rdi), %rax\r
-    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
-    popq    %rdi\r
-    ret\r
-\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem32.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem32.S
deleted file mode 100644 (file)
index 70426e7..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from ScanMem32.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   ScanMem32.S\r
-#\r
-# Abstract:\r
-#\r
-#   ScanMem32 function\r
-#\r
-# Notes:\r
-#\r
-#   The following BaseMemoryLib instances contain the same copy of this file:\r
-#\r
-#       BaseMemoryLibRepStr\r
-#       BaseMemoryLibMmx\r
-#       BaseMemoryLibSse2\r
-#       BaseMemoryLibOptDxe\r
-#       BaseMemoryLibOptPei\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-# CONST VOID *\r
-# EFIAPI\r
-# InternalMemScanMem32 (\r
-#   IN      CONST VOID                *Buffer,\r
-#   IN      UINTN                     Length,\r
-#   IN      UINT32                    Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemScanMem32)\r
-ASM_PFX(InternalMemScanMem32):\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
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem64.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem64.S
deleted file mode 100644 (file)
index eac15bc..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from ScanMem64.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   ScanMem64.S\r
-#\r
-# Abstract:\r
-#\r
-#   ScanMem64 function\r
-#\r
-# Notes:\r
-#\r
-#   The following BaseMemoryLib instances contain the same copy of this file:\r
-#\r
-#       BaseMemoryLibRepStr\r
-#       BaseMemoryLibMmx\r
-#       BaseMemoryLibSse2\r
-#       BaseMemoryLibOptDxe\r
-#       BaseMemoryLibOptPei\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-# CONST VOID *\r
-# EFIAPI\r
-# InternalMemScanMem64 (\r
-#   IN      CONST VOID                *Buffer,\r
-#   IN      UINTN                     Length,\r
-#   IN      UINT64                    Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemScanMem64)\r
-ASM_PFX(InternalMemScanMem64):\r
-    pushq   %rdi\r
-    movq    %rcx, %rdi\r
-    movq    %rdx, %rcx\r
-    movq    %r8, %rax\r
-    repne   scasq\r
-    leaq    -8(%rdi), %rax\r
-    cmovnz  %rcx, %rax                    # set rax to 0 if not found\r
-    popq    %rdi\r
-    ret\r
-\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem8.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem8.S
deleted file mode 100644 (file)
index cea3f56..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from ScanMem8.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   ScanMem8.S\r
-#\r
-# Abstract:\r
-#\r
-#   ScanMem8 function\r
-#\r
-# Notes:\r
-#\r
-#   The following BaseMemoryLib instances contain the same copy of this file:\r
-#\r
-#       BaseMemoryLibRepStr\r
-#       BaseMemoryLibMmx\r
-#       BaseMemoryLibSse2\r
-#       BaseMemoryLibOptDxe\r
-#       BaseMemoryLibOptPei\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-# CONST VOID *\r
-# EFIAPI\r
-# InternalMemScanMem8 (\r
-#   IN      CONST VOID                *Buffer,\r
-#   IN      UINTN                     Length,\r
-#   IN      UINT8                     Value\r
-#   );\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemScanMem8)\r
-ASM_PFX(InternalMemScanMem8):\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
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem.S
deleted file mode 100644 (file)
index 2e7edfa..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from SetMem.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   SetMem.S\r
-#\r
-# Abstract:\r
-#\r
-#   SetMem function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  EFIAPI\r
-#  InternalMemSetMem (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Count,\r
-#    IN UINT8  Value\r
-#    )\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemSetMem)\r
-ASM_PFX(InternalMemSetMem):\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
-    movq    %rdx, %rax     # rax = Buffer\r
-    popq    %rdi\r
-    ret\r
-\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem16.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem16.S
deleted file mode 100644 (file)
index 4c291e0..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from SetMem16.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   SetMem16.S\r
-#\r
-# Abstract:\r
-#\r
-#   SetMem16 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  EFIAPI\r
-#  InternalMemSetMem16 (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Count,\r
-#    IN UINT16 Value\r
-#    )\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemSetMem16)\r
-ASM_PFX(InternalMemSetMem16):\r
-    pushq   %rdi\r
-    movq    %rcx, %rdi\r
-    movq    %r8, %rax\r
-    xchgq   %rdx, %rcx\r
-    rep     stosw\r
-    movq    %rdx, %rax\r
-    popq    %rdi\r
-    ret\r
-\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem32.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem32.S
deleted file mode 100644 (file)
index 9b9a63d..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from SetMem32.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   SetMem32.S\r
-#\r
-# Abstract:\r
-#\r
-#   SetMem32 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  EFIAPI\r
-#  InternalMemSetMem32 (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Count,\r
-#    IN UINT32 Value\r
-#    );\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemSetMem32)\r
-ASM_PFX(InternalMemSetMem32):\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
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem64.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem64.S
deleted file mode 100644 (file)
index 6721693..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from SetMem64.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   SetMem64.S\r
-#\r
-# Abstract:\r
-#\r
-#   SetMem64 function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  InternalMemSetMem64 (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Count,\r
-#    IN UINT64 Value\r
-#    )\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemSetMem64)\r
-ASM_PFX(InternalMemSetMem64):\r
-    pushq   %rdi\r
-    movq    %rcx, %rdi\r
-    movq    %r8, %rax\r
-    xchgq   %rdx, %rcx\r
-    rep     stosq\r
-    movq    %rdx, %rax\r
-    popq    %rdi\r
-    ret\r
-\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/ZeroMem.S b/MdePkg/Library/BaseMemoryLibRepStr/X64/ZeroMem.S
deleted file mode 100644 (file)
index 83f3901..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-#\r
-# ConvertAsm.py: Automatically generated from ZeroMem.asm\r
-#\r
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution.  The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php.\r
-#\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-#\r
-# Module Name:\r
-#\r
-#   ZeroMem.S\r
-#\r
-# Abstract:\r
-#\r
-#   ZeroMem function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-#  VOID *\r
-#  InternalMemZeroMem (\r
-#    IN VOID   *Buffer,\r
-#    IN UINTN  Count\r
-#    );\r
-#------------------------------------------------------------------------------\r
-ASM_GLOBAL ASM_PFX(InternalMemZeroMem)\r
-ASM_PFX(InternalMemZeroMem):\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
-    movl    %edx, %ecx\r
-    rep     stosb\r
-    popq    %rax\r
-    popq    %rdi\r
-    ret\r
-\r