]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem32.nasm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptDxe / X64 / SetMem32.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 ; SetMem32.Asm
9 ;
10 ; Abstract:
11 ;
12 ; SetMem32 function
13 ;
14 ; Notes:
15 ;
16 ;------------------------------------------------------------------------------
17
18 DEFAULT REL
19 SECTION .text
20
21 ;------------------------------------------------------------------------------
22 ; VOID *
23 ; EFIAPI
24 ; InternalMemSetMem32 (
25 ; IN VOID *Buffer,
26 ; IN UINTN Count,
27 ; IN UINT32 Value
28 ; );
29 ;------------------------------------------------------------------------------
30 global ASM_PFX(InternalMemSetMem32)
31 ASM_PFX(InternalMemSetMem32):
32 push rdi
33 push rcx
34 mov rdi, rcx
35 mov rax, r8
36 xchg rcx, rdx
37 rep stosd
38 pop rax
39 pop rdi
40 ret
41