From: Peter Oberparleiter Date: Wed, 1 Feb 2006 11:06:40 +0000 (-0800) Subject: [PATCH] s390: Add missing memory constraint to stcrw() X-Git-Tag: v2.6.16-rc2~32 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46d0d2c811c8e9dd5cffdc3a5c03d988eb5a2996;p=linux-2.6 [PATCH] s390: Add missing memory constraint to stcrw() Add missing memory constraint to stcrw() inline assembly. Signed-off-by: Peter Oberparleiter Signed-off-by: Heiko Carstens Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/s390/s390mach.h b/drivers/s390/s390mach.h index d9ea7ed2e4..7abb42a09a 100644 --- a/drivers/s390/s390mach.h +++ b/drivers/s390/s390mach.h @@ -90,15 +90,16 @@ struct crw { static inline int stcrw(struct crw *pcrw ) { - int ccode; + int ccode; - __asm__ __volatile__( - "STCRW 0(%1)\n\t" - "IPM %0\n\t" - "SRL %0,28\n\t" - : "=d" (ccode) : "a" (pcrw) - : "cc", "1" ); - return ccode; + __asm__ __volatile__( + "stcrw 0(%2)\n\t" + "ipm %0\n\t" + "srl %0,28\n\t" + : "=d" (ccode), "=m" (*pcrw) + : "a" (pcrw) + : "cc" ); + return ccode; } #endif /* __s390mach */