提交 11dfbf58 编写于 作者: C Christophe Leroy 提交者: Scott Wood

powerpc: mark xer clobbered in csum_add()

addc uses carry so xer is clobbered in csum_add()
Signed-off-by: NChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: NScott Wood <oss@buserror.net>
上级 e0f82bdf
...@@ -141,7 +141,7 @@ static inline __wsum csum_add(__wsum csum, __wsum addend) ...@@ -141,7 +141,7 @@ static inline __wsum csum_add(__wsum csum, __wsum addend)
#else #else
asm("addc %0,%0,%1;" asm("addc %0,%0,%1;"
"addze %0,%0;" "addze %0,%0;"
: "+r" (csum) : "r" (addend)); : "+r" (csum) : "r" (addend) : "xer");
return csum; return csum;
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册