Linux MIPS Architecture development
 help / color / mirror / Atom feed
* csum_ipv6_magic()
@ 2001-10-22  6:16 Machida Hiroyuki
  2001-10-22  7:55 ` csum_ipv6_magic() Alan Cox
  0 siblings, 1 reply; 8+ messages in thread
From: Machida Hiroyuki @ 2001-10-22  6:16 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips


I guess that csum_ipv6_magic() in include/asm-mips/checksum.h 
needs "addu %0, $1" at the next of "sltu $1, %0, $1".
Without this, you cannot add a carry of the last addtion.


--- checksum.h.ORG      Mon Oct 22 15:09:32 2001
+++ checksum.h  Mon Oct 22 15:09:51 2001
@@ -249,6 +249,7 @@ static __inline__ unsigned short int csu
        "addu\t%0, $1\n\t"
        "addu\t%0, %1\n\t"
        "sltu\t$1, %0, $1\n\t"
+       "addu\t%0, $1\n\t"
        ".set\tnoat\n\t"
        ".set\tnoreorder"
        : "=r" (sum), "=r" (proto)

---
Hiroyuki Machida
Sony Corp.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-10-23 11:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-22  6:16 csum_ipv6_magic() Machida Hiroyuki
2001-10-22  7:55 ` csum_ipv6_magic() Alan Cox
2001-10-22  7:55   ` csum_ipv6_magic() Alan Cox
2001-10-22 10:56   ` csum_ipv6_magic() Machida Hiroyuki
2001-10-22 11:33     ` csum_ipv6_magic() Machida Hiroyuki
2001-10-22 20:48       ` csum_ipv6_magic() Ralf Baechle
2001-10-23  5:07         ` csum_ipv6_magic() Machida Hiroyuki
2001-10-23 11:18           ` csum_ipv6_magic() Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox