patch-2.1.34 linux/include/asm-sparc64/checksum.h
Next file: linux/include/asm-sparc64/delay.h
Previous file: linux/include/asm-sparc64/bitops.h
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Fri Apr 11 10:47:39 1997
- Orig file:
v2.1.33/linux/include/asm-sparc64/checksum.h
- Orig date:
Thu Mar 27 14:40:09 1997
diff -u --recursive --new-file v2.1.33/linux/include/asm-sparc64/checksum.h linux/include/asm-sparc64/checksum.h
@@ -1,4 +1,4 @@
-/* $Id: checksum.h,v 1.5 1997/03/18 18:00:28 jj Exp $ */
+/* $Id: checksum.h,v 1.6 1997/04/10 23:32:43 davem Exp $ */
#ifndef __SPARC64_CHECKSUM_H
#define __SPARC64_CHECKSUM_H
@@ -153,7 +153,7 @@
xnor %%g0, %0, %0
" : "=r" (sum), "=&r" (iph)
: "r" (ihl), "1" (iph)
- : "g2", "g3", "g7");
+ : "g2", "g3", "g7", "cc");
return sum;
}
@@ -177,7 +177,8 @@
addc %0, %%g0, %0
xnor %%g0, %0, %0
" : "=r" (sum), "=r" (saddr)
- : "r" (daddr), "r" ((proto<<16)+len), "0" (sum), "1" (saddr));
+ : "r" (daddr), "r" ((proto<<16)+len), "0" (sum), "1" (saddr)
+ : "cc");
return sum;
}
@@ -192,7 +193,8 @@
addc %1, %%g0, %1
xnor %%g0, %1, %0
" : "=&r" (sum), "=r" (tmp)
- : "0" (sum), "1" (sum<<16));
+ : "0" (sum), "1" (sum<<16)
+ : "cc");
return sum;
}
@@ -227,7 +229,7 @@
" : "=&r" (sum)
: "r" (saddr), "r" (daddr), "r"(htonl((__u32) (len))),
"r"(htonl(proto)), "r"(sum)
- : "g2", "g3", "g7");
+ : "g2", "g3", "g7", "cc");
return csum_fold(sum);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov