Skip to content

Commit

Permalink
Blackfin arch: fix bug - crashes in tcp_v4_send_reset
Browse files Browse the repository at this point in the history
Michael says that some bugs are crashes in tcp_v4_send_reset.
There's a missing clobber of "CC" in our checksum assembly
statement; fixing this makes the generated code look much saner.

Signed-off-by: Bernd Schmidt <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
  • Loading branch information
bernds authored and Bryan Wu committed Jan 7, 2009
1 parent 7ad883a commit b13120d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/blackfin/include/asm/checksum.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len,
"%0 = %0 + %4;\n\t"
"NOP;\n\t"
: "=d" (sum)
: "d" (daddr), "d" (saddr), "d" ((ntohs(len)<<16)+proto*256), "d" (1), "0"(sum));
: "d" (daddr), "d" (saddr), "d" ((ntohs(len)<<16)+proto*256), "d" (1), "0"(sum)
: "CC");

return (sum);
}
Expand Down

0 comments on commit b13120d

Please sign in to comment.