[PATCH] s390: Add missing memory constraint to stcrw()
Add missing memory constraint to stcrw() inline assembly. Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
b1969fa46d
commit
46d0d2c811
@@ -93,11 +93,12 @@ 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)
|
||||||
|
: "cc" );
|
||||||
return ccode;
|
return ccode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user