summaryrefslogtreecommitdiff
path: root/sys/lib/libkern
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2011-11-27 12:56:19 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2011-11-27 12:56:19 +0000
commit623191b2a871989788880483e9c01c0015558b93 (patch)
treeef4e7052e329a9806922da85ac4c098e00878d5d /sys/lib/libkern
parent9f76e9b56e327eab43f8c21304174f403f1d7941 (diff)
Fix return value of memcpy.
Diffstat (limited to 'sys/lib/libkern')
-rw-r--r--sys/lib/libkern/arch/hppa/bcopy.m47
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/lib/libkern/arch/hppa/bcopy.m4 b/sys/lib/libkern/arch/hppa/bcopy.m4
index 7ea605f340a..6eeeec0b326 100644
--- a/sys/lib/libkern/arch/hppa/bcopy.m4
+++ b/sys/lib/libkern/arch/hppa/bcopy.m4
@@ -1,4 +1,4 @@
-define(_rcsid,``$OpenBSD: bcopy.m4,v 1.18 2011/11/27 12:51:21 kettenis Exp $'')dnl
+define(_rcsid,``$OpenBSD: bcopy.m4,v 1.19 2011/11/27 12:56:18 kettenis Exp $'')dnl
dnl
dnl
dnl This is the source file for bcopy.S, spcopy.S
@@ -196,10 +196,9 @@ ifelse(NAME, `bcopy',
`
LEAF_ENTRY(memcpy)
ALTENTRY(memmove)
- copy arg0, t1
- copy arg1, arg0
- copy t1, arg1
copy arg0, ret0
+ copy arg1, arg0
+ copy ret0, arg1
ALTENTRY(ovbcopy)
ALTENTRY(bcopy)
comb,>,n arg1, arg0, L(bcopy, reverse)