Re: [PATCH 19/60] microblaze_v4: checksum support

2008-06-30 Thread Michal Simek
Hi Segher, you find bug because there is microblaze asm code in generic folder. Big thanks. I'll fix it and I'll look at parameters too. Michal +static inline unsigned int +csum_tcpudp_nofold(unsigned long saddr, unsigned long daddr, unsigned short len, + unsigned short

Re: [PATCH 19/60] microblaze_v4: checksum support

2008-06-30 Thread Segher Boessenkool
you find bug because there is microblaze asm code in generic folder. No, I found it because I was reading the code, I didn't even notice this was in asm-generic :-) Big thanks. I'll fix it and I'll look at parameters too. Thanks. Segher ___

Re: [PATCH 19/60] microblaze_v4: checksum support

2008-06-28 Thread Segher Boessenkool
+static inline unsigned int +csum_tcpudp_nofold(unsigned long saddr, unsigned long daddr, unsigned short len, + unsigned short proto, unsigned int sum) +{ + __asm__(add %0, %4, %1\n\t + addc %0, %4, %2\n\t + addc %0, %4, %3\n\t +

[PATCH 19/60] microblaze_v4: checksum support

2008-06-26 Thread monstr
From: Michal Simek [EMAIL PROTECTED] Signed-off-by: Michal Simek [EMAIL PROTECTED] --- include/asm-generic/checksum.h| 101 ++ include/asm-microblaze/checksum.h |1 + lib/Makefile |2 + lib/checksum.c| 166