aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/lib/csum_copy.S
diff options
context:
space:
mode:
authorJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-06-10 13:47:26 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-06-10 13:47:26 -0500
commitf0cd91a68acdc9b49d7f6738b514a426da627649 (patch)
tree8ad73564015794197583b094217ae0a71e71e753 /arch/sparc64/lib/csum_copy.S
parent60eef25701d25e99c991dd0f4a9f3832a0c3ad3e (diff)
parent128e6ced247cda88f96fa9f2e4ba8b2c4a681560 (diff)
downloadkernel_goldelico_gta04-f0cd91a68acdc9b49d7f6738b514a426da627649.zip
kernel_goldelico_gta04-f0cd91a68acdc9b49d7f6738b514a426da627649.tar.gz
kernel_goldelico_gta04-f0cd91a68acdc9b49d7f6738b514a426da627649.tar.bz2
Merge ../linux-2.6
Diffstat (limited to 'arch/sparc64/lib/csum_copy.S')
-rw-r--r--arch/sparc64/lib/csum_copy.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sparc64/lib/csum_copy.S b/arch/sparc64/lib/csum_copy.S
index 71af488..e566c77 100644
--- a/arch/sparc64/lib/csum_copy.S
+++ b/arch/sparc64/lib/csum_copy.S
@@ -221,11 +221,12 @@ FUNC_NAME: /* %o0=src, %o1=dst, %o2=len, %o3=sum */
sll %g1, 8, %g1
or %o5, %g1, %o4
-1: add %o3, %o4, %o3
+1: addcc %o3, %o4, %o3
+ addc %g0, %o3, %o3
70:
retl
- mov %o3, %o0
+ srl %o3, 0, %o0
95: mov 0, GLOBAL_SPARE
brlez,pn %o2, 4f