X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseMemoryLibMmx%2FX64%2FCompareMem.S;h=ee6bbe2715a37c543ab3ae6d207584356468ee02;hp=590240591bae90e06ac833ede26f433048766b25;hb=9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107;hpb=d1102dba7210b95e41d06c2338a22ba6af248645 diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S b/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S index 590240591b..ee6bbe2715 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S +++ b/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S @@ -3,7 +3,7 @@ # #------------------------------------------------------------------------------ # -# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
# This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at @@ -46,13 +46,13 @@ ASM_GLOBAL ASM_PFX(InternalMemCompareMem) ASM_PFX(InternalMemCompareMem): pushq %rsi pushq %rdi - movq %rcx, %rsi - movq %rdx, %rdi - movq %r8, %rcx + movq %rcx, %rsi + movq %rdx, %rdi + movq %r8, %rcx repe cmpsb movzbq -1(%rsi), %rax movzbq -1(%rdi), %rdx - subq %rdx, %rax + subq %rdx, %rax popq %rdi popq %rsi ret