summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2015-09-22 16:34:21 +0200
committerScott Wood <oss@buserror.net>2016-03-04 21:47:27 -0600
commit11dfbf588ae697bc5362c24294c2605f09c2d3d4 (patch)
tree368aaffe292d69f3352d17816b7c445d6f78ea54 /arch/powerpc
parente0f82bdf2dd04c08a167b5e9b47d65834ac84ba9 (diff)
downloadop-kernel-dev-11dfbf588ae697bc5362c24294c2605f09c2d3d4.zip
op-kernel-dev-11dfbf588ae697bc5362c24294c2605f09c2d3d4.tar.gz
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/include/asm/checksum.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/checksum.h b/arch/powerpc/include/asm/checksum.h
index e8d9ef4..d2ca07b 100644
--- a/arch/powerpc/include/asm/checksum.h
+++ b/arch/powerpc/include/asm/checksum.h
@@ -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
}
OpenPOWER on IntegriCloud