]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/EfiCommonLib/Ia32/EfiCopyMem.asm
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EfiCommonLib / Ia32 / EfiCopyMem.asm
index 7cf8b7f630789226f818ecf9b4e2e311515d7268..275e29b0c59e5ae35674f610070bcca28a1073e1 100644 (file)
@@ -73,16 +73,16 @@ EfiCommonLibCopyMem PROC
   mov   eax, esi\r
   add   eax, ecx                      ; Source + Count\r
   cmp   eax, edi\r
-  jle   _StartByteCopy\r
+  jbe   _StartByteCopy\r
 \r
   mov   eax, edi\r
   add   eax, ecx                      ; Dest + Count\r
   cmp   eax, esi\r
-  jle   _StartByteCopy\r
+  jbe   _StartByteCopy\r
 \r
   cmp   esi, edi\r
   je    _CopyMemDone         \r
-  jl    _CopyOverlapped               ; too bad -- overlaps\r
+  jb    _CopyOverlapped               ; too bad -- overlaps\r
 \r
   ; Pick up misaligned start bytes to get destination pointer 4-byte aligned\r
 _StartByteCopy:\r