2008-11-03 10:25:10 +01:00
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
#
|
2015-04-27 21:41:19 +02:00
|
|
|
# Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
2010-04-23 18:20:52 +02:00
|
|
|
# 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:
|
|
|
|
#
|
|
|
|
# ScanMem8.Asm
|
|
|
|
#
|
|
|
|
# Abstract:
|
|
|
|
#
|
|
|
|
# ScanMem8 function
|
|
|
|
#
|
|
|
|
# Notes:
|
|
|
|
#
|
|
|
|
# The following BaseMemoryLib instances contain the same copy of this file:
|
|
|
|
#
|
|
|
|
# BaseMemoryLibRepStr
|
|
|
|
# BaseMemoryLibMmx
|
|
|
|
# BaseMemoryLibSse2
|
|
|
|
# BaseMemoryLibOptDxe
|
|
|
|
# BaseMemoryLibOptPei
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2009-05-20 12:22:09 +02:00
|
|
|
ASM_GLOBAL ASM_PFX(InternalMemScanMem8)
|
2008-11-03 10:25:10 +01:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# CONST VOID *
|
|
|
|
# EFIAPI
|
|
|
|
# InternalMemScanMem8 (
|
|
|
|
# IN CONST VOID *Buffer,
|
|
|
|
# IN UINTN Length,
|
|
|
|
# IN UINT8 Value
|
|
|
|
# );
|
|
|
|
#------------------------------------------------------------------------------
|
2009-05-15 05:21:08 +02:00
|
|
|
ASM_PFX(InternalMemScanMem8):
|
2008-11-03 10:25:10 +01:00
|
|
|
push %edi
|
|
|
|
movl 12(%esp), %ecx
|
|
|
|
movl 8(%esp), %edi
|
|
|
|
movb 16(%esp), %al
|
|
|
|
repne scasb
|
|
|
|
leal -1(%edi), %eax
|
2015-04-27 21:41:19 +02:00
|
|
|
jz L0
|
|
|
|
movl %ecx, %eax
|
|
|
|
L0:
|
2008-11-03 10:25:10 +01:00
|
|
|
pop %edi
|
|
|
|
ret
|