]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibOptDxe/X64/ZeroMem.S
clean up all of eight BaseMemoryLib instances in MdePkg with the following updates:
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptDxe / X64 / ZeroMem.S
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