diff options
author | 2013-06-14 12:39:04 +0000 | |
---|---|---|
committer | 2013-06-14 12:39:04 +0000 | |
commit | ee79c28ae227ae3acacb7fa325c11b4f4252a186 (patch) | |
tree | e7d607a4d0626b94dfc57ee6c95cfadb39ad6c32 /sys/lib/libkern | |
parent | give up on fitting siop (diff) | |
download | wireguard-openbsd-ee79c28ae227ae3acacb7fa325c11b4f4252a186.tar.xz wireguard-openbsd-ee79c28ae227ae3acacb7fa325c11b4f4252a186.zip |
Fix memcpy/memmove return value.
Diffstat (limited to 'sys/lib/libkern')
-rw-r--r-- | sys/lib/libkern/arch/hppa/bcopy.m4 | 4 | ||||
-rw-r--r-- | sys/lib/libkern/arch/hppa64/bcopy.m4 | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/lib/libkern/arch/hppa/bcopy.m4 b/sys/lib/libkern/arch/hppa/bcopy.m4 index c40df123d0b..06c0e352423 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.20 2013/06/11 18:13:38 kettenis Exp $'')dnl +define(_rcsid,``$OpenBSD: bcopy.m4,v 1.21 2013/06/14 12:39:04 kettenis Exp $'')dnl dnl dnl dnl This is the source file for bcopy.S, spcopy.S @@ -202,10 +202,12 @@ ALTENTRY(ovbcopy) ALTENTRY(memmove) comb,>,n arg0, arg1, L(bcopy, reverse) ALTENTRY(memcpy) + copy arg0, ret0 hppa_copy(bcopy_f, sr0, arg1, sr0, arg0, arg2, `+') bv 0(rp) nop L(bcopy, reverse) + copy arg0, ret0 hppa_copy(bcopy_r, sr0, arg1, sr0, arg0, arg2, `-') bv 0(rp) nop diff --git a/sys/lib/libkern/arch/hppa64/bcopy.m4 b/sys/lib/libkern/arch/hppa64/bcopy.m4 index c2608e993d1..0a6622f5e33 100644 --- a/sys/lib/libkern/arch/hppa64/bcopy.m4 +++ b/sys/lib/libkern/arch/hppa64/bcopy.m4 @@ -1,4 +1,4 @@ -define(_rcsid,``$OpenBSD: bcopy.m4,v 1.10 2013/06/11 20:05:53 kettenis Exp $'')dnl +define(_rcsid,``$OpenBSD: bcopy.m4,v 1.11 2013/06/14 12:40:03 kettenis Exp $'')dnl dnl dnl dnl This is the source file for bcopy.S, spcopy.S @@ -191,10 +191,12 @@ ALTENTRY(ovbcopy) ALTENTRY(memmove) cmpb,*>,n %arg0, %arg1, L(bcopy, reverse) ALTENTRY(memcpy) + copy %arg0, %ret0 hppa_copy(bcopy_f, %sr0, %arg1, %sr0, %arg0, %arg2, `+') bv %r0(%rp) nop L(bcopy, reverse) + copy %arg0, %ret0 hppa_copy(bcopy_r, %sr0, %arg1, %sr0, %arg0, %arg2, `-') bv %r0(%rp) nop |