X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseMemoryLibSse2%2FIa32%2FSetMem64.asm;h=d6f52a0239d9cd50c323169325ba37498aac6c54;hp=c5d75c6f2b7ed1a11218f52cd97f514bb73b0438;hb=b20085454e91bb1ded87009722c9994b4684472c;hpb=db8f40e294c3ab4a8079619da71b6e41dea8044a diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm index c5d75c6f2b..d6f52a0239 100644 --- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm +++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm @@ -1,10 +1,10 @@ ;------------------------------------------------------------------------------ ; -; Copyright (c) 2006, Intel Corporation -; All rights reserved. This program and the accompanying materials +; Copyright (c) 2006, 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 -; http://opensource.org/licenses/bsd-license.php +; http://opensource.org/licenses/bsd-license.php. ; ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @@ -28,6 +28,7 @@ ;------------------------------------------------------------------------------ ; VOID * +; EFIAPI ; InternalMemSetMem64 ( ; IN VOID *Buffer, ; IN UINTN Count, @@ -35,13 +36,13 @@ ; ) ;------------------------------------------------------------------------------ InternalMemSetMem64 PROC - mov eax, [esp + 4] - mov ecx, [esp + 8] + mov eax, [esp + 4] ; eax <- Buffer + mov ecx, [esp + 8] ; ecx <- Count test al, 8 mov edx, eax - movq xmm0, [esp + 12] + movq xmm0, qword ptr [esp + 12] jz @F - movq [edx], xmm0 + movq qword ptr [edx], xmm0 add edx, 8 dec ecx @@: @@ -55,7 +56,7 @@ InternalMemSetMem64 PROC mfence @SetQwords: jnc @F - movq [edx], xmm0 + movq qword ptr [edx], xmm0 @@: ret InternalMemSetMem64 ENDP