summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2011-11-27 12:56:18 +0000
committerkettenis <kettenis@openbsd.org>2011-11-27 12:56:18 +0000
commitfe7b5f159e6bad56e1549121a04865de33648f32 (patch)
tree3b3416fe190d8f9357abc498f72f2ae100b5f21e /sys/lib/libkern
parentOops, jsing@ changed spcopy.S without realizing that that file is generated (diff)
downloadwireguard-openbsd-fe7b5f159e6bad56e1549121a04865de33648f32.tar.xz
wireguard-openbsd-fe7b5f159e6bad56e1549121a04865de33648f32.zip
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)