patch-2.2.18 linux/include/asm-arm/checksum.h
Next file: linux/include/asm-arm/dec21285.h
Previous file: linux/include/asm-arm/assembler.h
Back to the patch index
Back to the overall index
-  Lines: 16
-  Date:
Fri Sep 15 23:32:34 2000
-  Orig file: 
v2.2.17/include/asm-arm/checksum.h
-  Orig date: 
Fri Apr 21 12:46:48 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/asm-arm/checksum.h linux/include/asm-arm/checksum.h
@@ -117,12 +117,12 @@
 		   unsigned short proto, unsigned int sum)
 {
 	__asm__("
-	adds	%0, %0, %1
-	adcs	%0, %0, %2
+	adds	%0, %1, %2
 	adcs	%0, %0, %3
+	adcs	%0, %0, %4
 	adc	%0, %0, #0"
 	: "=&r"(sum)
-	: "r" (daddr), "r" (saddr), "r" ((ntohs(len)<<16)+proto*256), "0" (sum));
+	: "r" (sum), "r" (daddr), "r" (saddr), "r" ((ntohs(len)<<16)+proto*256));
 	return sum;
 }	
 /*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)