2016-05-31 03:52:08 +02:00
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
;
|
|
|
|
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:06:00 +02:00
|
|
|
; SPDX-License-Identifier: BSD-2-Clause-Patent
|
2016-05-31 03:52:08 +02:00
|
|
|
;
|
|
|
|
; Module Name:
|
|
|
|
;
|
|
|
|
; SetMem16.Asm
|
|
|
|
;
|
|
|
|
; Abstract:
|
|
|
|
;
|
|
|
|
; SetMem16 function
|
|
|
|
;
|
|
|
|
; Notes:
|
|
|
|
;
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
DEFAULT REL
|
|
|
|
SECTION .text
|
|
|
|
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
; VOID *
|
|
|
|
; EFIAPI
|
|
|
|
; InternalMemSetMem16 (
|
|
|
|
; IN VOID *Buffer,
|
|
|
|
; IN UINTN Count,
|
|
|
|
; IN UINT16 Value
|
|
|
|
; )
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
global ASM_PFX(InternalMemSetMem16)
|
|
|
|
ASM_PFX(InternalMemSetMem16):
|
|
|
|
push rdi
|
|
|
|
push rcx
|
|
|
|
mov rdi, rcx
|
|
|
|
mov rax, r8
|
|
|
|
xchg rcx, rdx
|
|
|
|
rep stosw
|
|
|
|
pop rax
|
|
|
|
pop rdi
|
|
|
|
ret
|
|
|
|
|