summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2011-04-14 13:52:29 +0000
committerjsing <jsing@openbsd.org>2011-04-14 13:52:29 +0000
commit96c5d68f1cff015443b071c8f36b2b10d9118df1 (patch)
treeb48f9052d1c87bf1162192da45744fe1b8fa28dc
parentCorrectly load p_addr and avoid trashing the source address. (diff)
downloadwireguard-openbsd-96c5d68f1cff015443b071c8f36b2b10d9118df1.tar.xz
wireguard-openbsd-96c5d68f1cff015443b071c8f36b2b10d9118df1.zip
Use 64-bit operations for address manipulation.
-rw-r--r--sys/lib/libkern/arch/hppa64/bcopy.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/lib/libkern/arch/hppa64/bcopy.m4 b/sys/lib/libkern/arch/hppa64/bcopy.m4
index 3ab93a07f2a..1dc5a02667b 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.5 2011/04/14 13:49:31 jsing Exp $'')dnl
+define(_rcsid,``$OpenBSD: bcopy.m4,v 1.6 2011/04/14 13:52:29 jsing Exp $'')dnl
dnl
dnl
dnl This is the source file for bcopy.S, spcopy.S
@@ -123,11 +123,11 @@ define(`E', `e')dnl
ifelse($7,`-', `', `0',`0',
` comib,>=,n 15, $6, L($1, byte)
- extru $3, 31, 2, %r20
- extru $5, 31, 2, %r19
+ extrd $3, 63, 2, %r20
+ extrd $5, 63, 2, %r19
add $6, %r19, $6
comb,<> %r20, %r19, L($1, unaligned)
- dep %r0, 31, 2, $3
+ depd %r0, 63, 2, $3
hppa_blcopy($1, $2, $3, $4, $5, $6, `a')
STWL($1, $2, $3, $4, $5, $6, `a')dnl