summaryrefslogtreecommitdiff
path: root/sys/lib
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2011-09-19 10:50:11 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2011-09-19 10:50:11 +0000
commit4866955eda230d6e14f72c95eef6ee2ee5a972d0 (patch)
treedf66691ca7506ae0c842d35fac11d0405a59fbee /sys/lib
parent7674521efa1d3c0cc234cbfc782830de715144d0 (diff)
Avoid sign-extension when extracting the low bits of addresses when checking
if the addresses are 4-byte aligned. ok jsing@
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libkern/arch/hppa64/bcopy.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/lib/libkern/arch/hppa64/bcopy.m4 b/sys/lib/libkern/arch/hppa64/bcopy.m4
index 1dc5a02667b..d32cddca2f6 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.6 2011/04/14 13:52:29 jsing Exp $'')dnl
+define(_rcsid,``$OpenBSD: bcopy.m4,v 1.7 2011/09/19 10:50:10 kettenis Exp $'')dnl
dnl
dnl
dnl This is the source file for bcopy.S, spcopy.S
@@ -123,8 +123,8 @@ define(`E', `e')dnl
ifelse($7,`-', `', `0',`0',
` comib,>=,n 15, $6, L($1, byte)
- extrd $3, 63, 2, %r20
- extrd $5, 63, 2, %r19
+ extrd,u $3, 63, 2, %r20
+ extrd,u $5, 63, 2, %r19
add $6, %r19, $6
comb,<> %r20, %r19, L($1, unaligned)
depd %r0, 63, 2, $3