]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem64.nasm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptPei / X64 / SetMem64.nasm
1 ;------------------------------------------------------------------------------
2 ;
3 ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
5 ;
6 ; Module Name:
7 ;
8 ; SetMem64.Asm
9 ;
10 ; Abstract:
11 ;
12 ; SetMem64 function
13 ;
14 ; Notes:
15 ;
16 ;------------------------------------------------------------------------------
17
18 DEFAULT REL
19 SECTION .text
20
21 ;------------------------------------------------------------------------------
22 ; VOID *
23 ; InternalMemSetMem64 (
24 ; IN VOID *Buffer,
25 ; IN UINTN Count,
26 ; IN UINT64 Value
27 ; )
28 ;------------------------------------------------------------------------------
29 global ASM_PFX(InternalMemSetMem64)
30 ASM_PFX(InternalMemSetMem64):
31 push rdi
32 mov rdi, rcx
33 mov rax, r8
34 xchg rcx, rdx
35 rep stosq
36 mov rax, rdx
37 pop rdi
38 ret
39