Commit 11dfbf58 authored by Christophe Leroy's avatar Christophe Leroy Committed by Scott Wood

powerpc: mark xer clobbered in csum_add()

addc uses carry so xer is clobbered in csum_add()
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarScott Wood <oss@buserror.net>
parent e0f82bdf
......@@ -141,7 +141,7 @@ static inline __wsum csum_add(__wsum csum, __wsum addend)
#else
asm("addc %0,%0,%1;"
"addze %0,%0;"
: "+r" (csum) : "r" (addend));
: "+r" (csum) : "r" (addend) : "xer");
return csum;
#endif
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment