diff options
author | marius <marius@FreeBSD.org> | 2008-06-27 22:17:14 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2008-06-27 22:17:14 +0000 |
commit | 935cdf2ac6f34981f7115341e02c395df68f110e (patch) | |
tree | 3cca50b3f4fa8d9b6e3f2b7bc806ecc3f481815a /sys/sparc64 | |
parent | efa4ddba9d6ee2a01cb2287bc6c8b5e59dbfc255 (diff) | |
download | FreeBSD-src-935cdf2ac6f34981f7115341e02c395df68f110e.zip FreeBSD-src-935cdf2ac6f34981f7115341e02c395df68f110e.tar.gz |
Improve r180011 by explicitly adding the condition codes to the
clobber list.
Suggested by: Christoph Mallon
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/include/in_cksum.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sparc64/include/in_cksum.h b/sys/sparc64/include/in_cksum.h index ad08585..c7cc5a1 100644 --- a/sys/sparc64/include/in_cksum.h +++ b/sys/sparc64/include/in_cksum.h @@ -85,7 +85,7 @@ in_addword(u_short sum, u_short b) "addcc %0, %1, %0\n" "srl %0, 16, %0\n" "addc %0, 0, %0\n" - : "=&r" (__ret), "=&r" (__tmp) : "r" (sum), "r" (b)); + : "=&r" (__ret), "=&r" (__tmp) : "r" (sum), "r" (b) : "cc"); return (__ret); } @@ -102,7 +102,7 @@ in_pseudo(u_int sum, u_int b, u_int c) "addcc %0, %1, %0\n" "srl %0, 16, %0\n" "addc %0, 0, %0\n" - : "=r" (sum), "=&r" (__tmp) : "0" (sum), "r" (b), "r" (c)); + : "=r" (sum), "=&r" (__tmp) : "0" (sum), "r" (b), "r" (c) : "cc"); return (sum); } @@ -159,7 +159,7 @@ in_cksum_hdr(struct ip *ip) "sll %0, 16, %0\n" "srl %0, 16, %0\n" : "=&r" (__ret), "=r" (__tmp1), "=&r" (__tmp2), "=&r" (__tmp3), - "=&r" (__tmp4) : "1" (ip)); + "=&r" (__tmp4) : "1" (ip) : "cc"); #undef __LD_ADD return (__ret); } |