Skip to content

Commit

Permalink
[PATCH] s390: Add missing memory constraint to stcrw()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Oberparleiter authored and Linus Torvalds committed Feb 1, 2006
1 parent b1969fa commit 46d0d2c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions drivers/s390/s390mach.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 46d0d2c

Please sign in to comment.