3 ;Copyright (c) 2007, Intel Corporation
4 ;All rights reserved. This program and the accompanying materials
5 ;are licensed and made available under the terms and conditions of the BSD License
6 ;which accompanies this distribution. The full text of the license may be found at
7 ;http://opensource.org/licenses/bsd-license.php
9 ;THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 ;WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 ;This is the code that uses rep stosd SetMem service
22 ;---------------------------------------------------------------------------
27 ;---------------------------------------------------------------------------
38 ;Input: VOID *Buffer - Pointer to buffer to write
39 ;UINTN Count - Number of bytes to write
40 ;UINT8 Value - Value to write
48 ;Description: This function uses rep stosd to set memory.
51 EfiCommonLibSetMem PROC
55 mov ecx,dword ptr [ebp+0Ch]
58 mov al,byte ptr [ebp+10h]
63 mov edi,dword ptr [ebp+8]
74 EfiCommonLibSetMem ENDP