Commit 46d0d2c8 authored by Peter Oberparleiter's avatar Peter Oberparleiter Committed by Linus Torvalds

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

Add missing memory constraint to stcrw() inline assembly.
Signed-off-by: default avatarPeter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b1969fa4
......@@ -93,11 +93,12 @@ static inline int stcrw(struct crw *pcrw )
int ccode;
__asm__ __volatile__(
"STCRW 0(%1)\n\t"
"IPM %0\n\t"
"SRL %0,28\n\t"
: "=d" (ccode) : "a" (pcrw)
: "cc", "1" );
"stcrw 0(%2)\n\t"
"ipm %0\n\t"
"srl %0,28\n\t"
: "=d" (ccode), "=m" (*pcrw)
: "a" (pcrw)
: "cc" );
return ccode;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment