]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibOptDxe/X64/ZeroMem.S
synchronize asm and s file
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptDxe / X64 / ZeroMem.S
index 97c3130709dfb27a608d0a1577c0efbe0dc8a2ff..9c6be9c97e8fcda66051028c4c3d0100b2a45dcd 100644 (file)
@@ -41,9 +41,10 @@ ASM_PFX(InternalMemZeroMem):
     mov     rdi, rcx
     mov     rcx, rdx
     shr     rcx, 3
-    and     rdx, 7
+    and     rdx, 7\r
+    cld
     rep     stosq
-    mov     ecx, edx
+    mov     rcx, rdx
     rep     stosb
     pop     rax
     pop     rdi