powerpc: mark xer clobbered in csum_add()

addc uses carry so xer is clobbered in csum_add()

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <oss@buserror.net>
This commit is contained in:
Christophe Leroy 2015-09-22 16:34:21 +02:00 committed by Scott Wood
parent e0f82bdf2d
commit 11dfbf588a
1 changed files with 1 additions and 1 deletions

View File

@ -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
}