2008-11-03 10:25:10 +01:00
|
|
|
#
|
|
|
|
# ConvertAsm.py: Automatically generated from SetMem64.asm
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
#
|
2010-04-23 18:16:36 +02:00
|
|
|
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
|
|
# This program and the accompanying materials
|
2008-11-03 10:25:10 +01:00
|
|
|
# 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
|
2010-06-25 23:56:02 +02:00
|
|
|
# http://opensource.org/licenses/bsd-license.php.
|
2008-11-03 10:25:10 +01:00
|
|
|
#
|
|
|
|
# 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:
|
|
|
|
#
|
|
|
|
# SetMem64.S
|
|
|
|
#
|
|
|
|
# Abstract:
|
|
|
|
#
|
|
|
|
# SetMem64 function
|
|
|
|
#
|
|
|
|
# Notes:
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# VOID *
|
|
|
|
# InternalMemSetMem64 (
|
|
|
|
# IN VOID *Buffer,
|
|
|
|
# IN UINTN Count,
|
|
|
|
# IN UINT64 Value
|
|
|
|
# )
|
|
|
|
#------------------------------------------------------------------------------
|
2009-05-20 12:22:09 +02:00
|
|
|
ASM_GLOBAL ASM_PFX(InternalMemSetMem64)
|
2008-11-03 10:25:10 +01:00
|
|
|
ASM_PFX(InternalMemSetMem64):
|
2009-08-11 17:32:16 +02:00
|
|
|
pushq %rdi
|
|
|
|
movq %rcx, %rdi
|
|
|
|
movq %r8, %rax
|
|
|
|
xchgq %rdx, %rcx
|
2008-11-03 10:25:10 +01:00
|
|
|
rep stosq
|
2014-08-11 09:05:49 +02:00
|
|
|
movq %rdx, %rax
|
2009-08-11 17:32:16 +02:00
|
|
|
popq %rdi
|
2008-11-03 10:25:10 +01:00
|
|
|
ret
|
|
|
|
|