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
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
___
+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
+
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