]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S
Import some basic libraries instances for Mde Packages.
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibRepStr / Ia32 / SetMem.S
1 //
2 // Include common header file for this module.
3 //
4 #include "CommonHeader.h"
5
6 #------------------------------------------------------------------------------
7 #
8 # Copyright (c) 2006, Intel Corporation
9 # All rights reserved. This program and the accompanying materials
10 # are licensed and made available under the terms and conditions of the BSD License
11 # which accompanies this distribution. The full text of the license may be found at
12 # http://opensource.org/licenses/bsd-license.php
13 #
14 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #
17 # Module Name:
18 #
19 # SetMem.Asm
20 #
21 # Abstract:
22 #
23 # SetMem function
24 #
25 # Notes:
26 #
27 #------------------------------------------------------------------------------
28
29 .386:
30 .code:
31
32 .globl _InternalMemSetMem
33
34 #------------------------------------------------------------------------------
35 # VOID *
36 # InternalMemSetMem (
37 # IN VOID *Buffer,
38 # IN UINTN Count,
39 # IN UINT8 Value
40 # )
41 #------------------------------------------------------------------------------
42 _InternalMemSetMem:
43 push %edi
44 movl 16(%esp),%eax
45 movl 8(%esp),%edi
46 movl 12(%esp),%ecx
47 rep
48 stosb
49 movl 8(%esp),%eax
50 pop %edi
51 ret