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:
|
|
|
|
#
|
|
|
|
# ScanMem32.Asm
|
|
|
|
#
|
|
|
|
# Abstract:
|
|
|
|
#
|
|
|
|
# ScanMem32 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(InternalMemScanMem32)
|
2008-11-03 10:25:10 +01:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# CONST VOID *
|
|
|
|
# EFIAPI
|
|
|
|
# InternalMemScanMem32 (
|
|
|
|
# IN CONST VOID *Buffer,
|
|
|
|
# IN UINTN Length,
|
|
|
|
# IN UINT32 Value
|
|
|
|
# );
|
|
|
|
#------------------------------------------------------------------------------
|
2009-05-15 05:21:08 +02:00
|
|
|
ASM_PFX(InternalMemScanMem32):
|
2008-11-03 10:25:10 +01:00
|
|
|
push %edi
|
|
|
|
movl 12(%esp), %ecx
|
|
|
|
movl 8(%esp), %edi
|
|
|
|
movl 16(%esp), %eax
|
|
|
|
repne scasl
|
|
|
|
leal -4(%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
|