]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
MdePkg/BaseMemoryLibRepStr: Support IA32 processors without CMOVx
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibRepStr / Ia32 / ScanMem8.S
index 5e451fd7b93d3aa12e4abf09fcddde907a7a14a0..d490ee7fd0451532119858e966fb1af0eb536f17 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\r
 #\r
-# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
@@ -47,6 +47,8 @@ ASM_PFX(InternalMemScanMem8):
     movb    16(%esp), %al\r
     repne   scasb\r
     leal    -1(%edi), %eax\r
-    cmovnz  %ecx, %eax\r
+    jz      L0\r
+    movl    %ecx, %eax\r
+L0:    \r
     pop     %edi\r
     ret\r