summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPat Galizia <pgalizia@codeaurora.org>2011-02-28 11:22:03 -0500
committerJessica Gonzalez <jgaona@codeaurora.org>2011-03-10 16:22:01 -0800
commitc6758d220d5ac0cb5c6506ace11ae3ed1b11abde (patch)
tree523d3b1849215f68b8ee7de98ac9a2e669e505a9
parentf8f5d10c2346d93acd5f05e0923f2792a8e55c98 (diff)
downloadbionic-M8660AAABQNLYA109002.zip
bionic-M8660AAABQNLYA109002.tar.gz
bionic-M8660AAABQNLYA109002.tar.bz2
The initial bcopy replacement copies the destination register to both arguments, so that the copy drops through and nothing is done. This modifies the register switch such that it now functions properly. (cherry picked from commit 99c655226468ff12c5cdf5563f74cd36962b8d60) Change-Id: I482b2261318e18e6e2392d2f26d350c032f798b0
-rw-r--r--libc/arch-arm/bionic/memmove.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/arch-arm/bionic/memmove.S b/libc/arch-arm/bionic/memmove.S
index d68b142..1234195 100644
--- a/libc/arch-arm/bionic/memmove.S
+++ b/libc/arch-arm/bionic/memmove.S
@@ -63,7 +63,7 @@
.type bcopy, %function
bcopy:
- mov r12, r1
+ mov r12, r0
mov r0, r1
mov r1, r12
memmove: