From cfe41b57abb8ba26e4bd1c0b09c8b3506a7c55df Mon Sep 17 00:00:00 2001 From: Michael Kinney Date: Mon, 27 Apr 2015 19:41:19 +0000 Subject: 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 Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17214 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.asm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.asm') diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.asm index c64d41d6c1..202d58f790 100644 --- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.asm +++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.asm @@ -1,6 +1,6 @@ ;------------------------------------------------------------------------------ ; -; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
+; Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
; 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 @@ -48,7 +48,9 @@ InternalMemScanMem8 PROC USES edi mov al, [esp + 16] repne scasb lea eax, [edi - 1] - cmovnz eax, ecx + jz @F + mov eax, ecx +@@: ret InternalMemScanMem8 ENDP -- cgit v1.2.3