This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / arm / lib / csumpartial.S
index cb5e370..c5515f3 100644 (file)
@@ -73,7 +73,8 @@ td3   .req    lr
 .done:         adc     r0, sum, #0             @ collect up the last carry
                ldr     td0, [sp], #4
                tst     td0, #1                 @ check buffer alignment
-               movne   r0, r0, ror #8          @ rotate checksum by 8 bits
+               movne   td0, r0, lsl #8         @ rotate checksum by 8 bits
+               orrne   r0, td0, r0, lsr #24
                ldr     pc, [sp], #4            @ return
 
 .not_aligned:  tst     buf, #1                 @ odd address