X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseMemoryLibOptPei%2FX64%2FSetMem16.S;h=35486df8cfae4610f7e5d0e1fc7e2dbae0b9e902;hb=1fef058f4b8fefc455bb171e4908c3e835b1b492;hp=c091131a759126cbd74d11ab0695a53fa3410522;hpb=ba19956ac3c600eaeff1c90556457105032218d8;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem16.S b/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem16.S index c091131a75..35486df8cf 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem16.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem16.S @@ -3,7 +3,7 @@ # #------------------------------------------------------------------------------ # -# Copyright (c) 2006 - 2008, Intel Corporation +# Copyright (c) 2006 - 2009, 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 @@ -34,15 +34,14 @@ # IN UINT16 Value # ) #------------------------------------------------------------------------------ -.intel_syntax noprefix ASM_GLOBAL ASM_PFX(InternalMemSetMem16) ASM_PFX(InternalMemSetMem16): - push rdi - mov rdi, rcx - mov rax, r8 - xchg rcx, rdx + pushq %rdi + movq %rcx, %rdi + movq %r8, %rax + xchgq %rdx, %rcx rep stosw - mov rax, rdx - pop rdi + movq %rdx, %rax + popq %rdi ret