提交 46d0d2c8 编写于 作者: P Peter Oberparleiter 提交者: Linus Torvalds

[PATCH] s390: Add missing memory constraint to stcrw()

Add missing memory constraint to stcrw() inline assembly.
Signed-off-by: NPeter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 b1969fa4
...@@ -90,15 +90,16 @@ struct crw { ...@@ -90,15 +90,16 @@ struct crw {
static inline int stcrw(struct crw *pcrw ) static inline int stcrw(struct crw *pcrw )
{ {
int ccode; int ccode;
__asm__ __volatile__( __asm__ __volatile__(
"STCRW 0(%1)\n\t" "stcrw 0(%2)\n\t"
"IPM %0\n\t" "ipm %0\n\t"
"SRL %0,28\n\t" "srl %0,28\n\t"
: "=d" (ccode) : "a" (pcrw) : "=d" (ccode), "=m" (*pcrw)
: "cc", "1" ); : "a" (pcrw)
return ccode; : "cc" );
return ccode;
} }
#endif /* __s390mach */ #endif /* __s390mach */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部