Skip to content

Commit

Permalink
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
Browse files Browse the repository at this point in the history
* master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
  [SPARC64]: Fix missing fold at end of checksums.
  • Loading branch information
Linus Torvalds committed Jun 5, 2006
2 parents 959eb39 + ae5de0f commit 50ff06d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions arch/sparc64/lib/checksum.S
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ csum_partial_end_cruft:
sll %g1, 8, %g1
or %o5, %g1, %o4

1: add %o2, %o4, %o2
1: addcc %o2, %o4, %o2
addc %g0, %o2, %o2

csum_partial_finish:
retl
mov %o2, %o0
srl %o2, 0, %o0
5 changes: 3 additions & 2 deletions arch/sparc64/lib/csum_copy.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50ff06d

Please sign in to comment.