patch-2.3.3 linux/arch/i386/lib/checksum.S
Next file: linux/arch/m68k/atari/stdma.c
Previous file: linux/arch/i386/Makefile
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Sun May 16 13:17:22 1999
- Orig file:
v2.3.2/linux/arch/i386/lib/checksum.S
- Orig date:
Fri Jan 15 14:36:20 1999
diff -u --recursive --new-file v2.3.2/linux/arch/i386/lib/checksum.S linux/arch/i386/lib/checksum.S
@@ -117,9 +117,11 @@
#else /* CPU==686 */
csum_partial:
- movl 12(%esp),%eax # Function arg: unsigned int sum
- movl 8(%esp),%ecx # Function arg: int len
- movl 4(%esp),%esi # Function arg: const unsigned char *buf
+ pushl %esi
+ pushl %ebx
+ movl 20(%esp),%eax # Function arg: unsigned int sum
+ movl 16(%esp),%ecx # Function arg: int len
+ movl 12(%esp),%esi # Function arg: const unsigned char *buf
testl $2, %esi
jnz 30f
@@ -204,6 +206,8 @@
addl %ebx,%eax
adcl $0,%eax
80:
+ popl %ebx
+ popl %esi
ret
#endif /* CPU==686 */
@@ -369,7 +373,7 @@
#define ROUND1(x) \
SRC(movl x(%esi), %ebx ) ; \
- addl %ebx, %eax\n ; \
+ addl %ebx, %eax ; \
DST(movl %ebx, x(%edi) ) ;
#define ROUND(x) \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)