]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseMemoryLibOptDxe/X64/ZeroMem.S
Add PcdVerifyNoteInList for judge whether do verification of node in list in debug...
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptDxe / X64 / ZeroMem.S
CommitLineData
b1ff428c 1#\r
2# ConvertAsm.py: Automatically generated from ZeroMem.asm\r
3#\r
4#------------------------------------------------------------------------------\r
5#\r
373ade0e 6# Copyright (c) 2006 - 2008, Intel Corporation\r
b1ff428c 7# All rights reserved. This program and the accompanying materials\r
8# are licensed and made available under the terms and conditions of the BSD License\r
9# which accompanies this distribution. The full text of the license may be found at\r
10# http://opensource.org/licenses/bsd-license.php\r
11#\r
12# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14#\r
15# Module Name:\r
16#\r
17# ZeroMem.S\r
18#\r
19# Abstract:\r
20#\r
21# ZeroMem function\r
22#\r
23# Notes:\r
24#\r
25#------------------------------------------------------------------------------\r
26\r
27\r
28#------------------------------------------------------------------------------\r
29# VOID *\r
30# InternalMemZeroMem (\r
31# IN VOID *Buffer,\r
32# IN UINTN Count\r
33# );\r
34#------------------------------------------------------------------------------\r
35.intel_syntax noprefix\r
132f41f0 36ASM_GLOBAL ASM_PFX(InternalMemZeroMem)\r
b1ff428c 37ASM_PFX(InternalMemZeroMem):\r
38 push rdi\r
39 push rcx\r
40 xor rax, rax\r
41 mov rdi, rcx\r
42 mov rcx, rdx\r
43 shr rcx, 3\r
2f3d6fb5 44 and rdx, 7\r
b1ff428c 45 cld\r
46 rep stosq\r
47 mov rcx, rdx\r
48 rep stosb\r
49 pop rax\r
50 pop rdi\r
51 ret\r
52\r