summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPat Galizia <pgalizia@codeaurora.org>2011-02-28 11:22:03 -0500
committerPat Galizia <pgalizia@codeaurora.org>2011-02-28 11:22:03 -0500
commit99c655226468ff12c5cdf5563f74cd36962b8d60 (patch)
tree286dd28ed579e23ce9e796090ebde50c3a20da6a
parent77e312b6535456180f3b77a9d998a58d192ac07f (diff)
downloadbionic-99c655226468ff12c5cdf5563f74cd36962b8d60.zip
bionic-99c655226468ff12c5cdf5563f74cd36962b8d60.tar.gz
bionic-99c655226468ff12c5cdf5563f74cd36962b8d60.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. Change-Id: I91da6bdbfd6295da32ec3131cc6fe5b18cd9e3ad
-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: