summaryrefslogtreecommitdiff
path: root/Core/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.nasm
diff options
context:
space:
mode:
authorGuo Mang <mang.guo@intel.com>2017-04-27 11:08:17 +0800
committerGuo Mang <mang.guo@intel.com>2017-04-27 11:08:17 +0800
commitb0724f89e3b05de1d6492e79ec89f6d467cb14f0 (patch)
treee4a9eff6dc255621c2f0a08d61d32bf95087a7a9 /Core/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.nasm
parentc23f114d3cfbb29b8734b87213d1ec0de404197b (diff)
downloadedk2-platforms-b0724f89e3b05de1d6492e79ec89f6d467cb14f0.tar.xz
MdePkg: Move to new location
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Guo Mang <mang.guo@intel.com>
Diffstat (limited to 'Core/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.nasm')
-rw-r--r--Core/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.nasm44
1 files changed, 44 insertions, 0 deletions
diff --git a/Core/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.nasm b/Core/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.nasm
new file mode 100644
index 0000000000..96785c8e7f
--- /dev/null
+++ b/Core/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.nasm
@@ -0,0 +1,44 @@
+;------------------------------------------------------------------------------
+;
+; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; 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.
+;
+; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+;
+; Module Name:
+;
+; SetMem16.Asm
+;
+; Abstract:
+;
+; SetMem16 function
+;
+; Notes:
+;
+;------------------------------------------------------------------------------
+
+ SECTION .text
+
+;------------------------------------------------------------------------------
+; VOID *
+; InternalMemSetMem16 (
+; IN VOID *Buffer,
+; IN UINTN Count,
+; IN UINT16 Value
+; )
+;------------------------------------------------------------------------------
+global ASM_PFX(InternalMemSetMem16)
+ASM_PFX(InternalMemSetMem16):
+ push edi
+ mov eax, [esp + 16]
+ mov edi, [esp + 8]
+ mov ecx, [esp + 12]
+ rep stosw
+ mov eax, [esp + 8]
+ pop edi
+ ret
+