diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-22 16:55:58 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-09-22 16:55:58 +0000 |
commit | a0b4ea2aeca3f0686c0f7662356608ef189c39a7 (patch) | |
tree | b1d8c52b6b691b892a426a289517c792c1992e32 /MdePkg | |
parent | 679efe0afa1027ccfdb5254d7cc6ad7d709ec10e (diff) | |
download | edk2-platforms-a0b4ea2aeca3f0686c0f7662356608ef189c39a7.tar.xz |
Fix bug in backward copy for x64
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3913 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/BaseMemoryLibRepStr/x64/CopyMem.asm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/x64/CopyMem.asm b/MdePkg/Library/BaseMemoryLibRepStr/x64/CopyMem.asm index a2e04056fd..c2b5d6f92f 100644 --- a/MdePkg/Library/BaseMemoryLibRepStr/x64/CopyMem.asm +++ b/MdePkg/Library/BaseMemoryLibRepStr/x64/CopyMem.asm @@ -39,7 +39,7 @@ InternalMemCopyMem PROC USES rsi rdi cmp rsi, rdi
mov rax, rdi ; rax <- Destination as return value
jae @F
- cmp r9, rsi
+ cmp r9, rdi
jae @CopyBackward ; Copy backward if overlapped
@@:
mov rcx, r8
|