summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
diff options
context:
space:
mode:
authorMichael Kinney <michael.d.kinney@intel.com>2015-04-27 19:41:19 +0000
committermdkinney <mdkinney@Edk2>2015-04-27 19:41:19 +0000
commitcfe41b57abb8ba26e4bd1c0b09c8b3506a7c55df (patch)
treef2459a745d408e65b4502d139ac2fa3d87b6a718 /MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
parent88a75d260cadc67cc0edf6ad5f57241ed89a7d4b (diff)
downloadedk2-cfe41b57abb8ba26e4bd1c0b09c8b3506a7c55df.tar.gz
edk2-cfe41b57abb8ba26e4bd1c0b09c8b3506a7c55df.tar.bz2
edk2-cfe41b57abb8ba26e4bd1c0b09c8b3506a7c55df.zip
MdePkg/BaseMemoryLibRepStr: Support IA32 processors without CMOVx
Remove use of CMOVx instruction from IA32 assembly files in BaseMemoryLibRepStr. This matches compiler flags for all supported C compilers. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17214 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S')
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
index 5e451fd7b9..d490ee7fd0 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
#
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# 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
@@ -47,6 +47,8 @@ ASM_PFX(InternalMemScanMem8):
movb 16(%esp), %al
repne scasb
leal -1(%edi), %eax
- cmovnz %ecx, %eax
+ jz L0
+ movl %ecx, %eax
+L0:
pop %edi
ret