summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-09-04 00:23:15 +0000
committermarcel <marcel@FreeBSD.org>2004-09-04 00:23:15 +0000
commit7f85950ec545d79ad29b1638aaa74181b22b9bef (patch)
tree08eea8a7a15e5085b4886c6149bc8232bd513043
parenta035e5e43cb3be0164f53aa450d686b7a1c09112 (diff)
downloadFreeBSD-src-7f85950ec545d79ad29b1638aaa74181b22b9bef.zip
FreeBSD-src-7f85950ec545d79ad29b1638aaa74181b22b9bef.tar.gz
Unbreak memmove(). Return the dst argument. While here, fix the END
macro to actually reference memmove, not memcpy.
-rw-r--r--lib/libc/ia64/string/memmove.S13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libc/ia64/string/memmove.S b/lib/libc/ia64/string/memmove.S
index 06639d1..19fa8af 100644
--- a/lib/libc/ia64/string/memmove.S
+++ b/lib/libc/ia64/string/memmove.S
@@ -28,10 +28,9 @@
__FBSDID("$FreeBSD$");
ENTRY(memmove,3)
-
- mov r14=in0 ;;
- mov in0=in1 ;;
- mov in1=r14
- br.cond.sptk.few bcopy
-
-END(memcpy)
+ mov r8 = in0
+ mov in0 = in1
+ ;;
+ mov in1 = r8
+ br.sptk.few bcopy
+END(memmove)
OpenPOWER on IntegriCloud