projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1969fa
)
[PATCH] s390: Add missing memory constraint to stcrw()
author
Peter Oberparleiter
<
[email protected]
>
Wed, 1 Feb 2006 11:06:40 +0000
(
03:06
-0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 1 Feb 2006 16:53:24 +0000
(08:53 -0800)
Add missing memory constraint to stcrw() inline assembly.
Signed-off-by: Peter Oberparleiter <
[email protected]
>
Signed-off-by: Heiko Carstens <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/s390/s390mach.h
patch
|
blob
|
history
diff --git
a/drivers/s390/s390mach.h
b/drivers/s390/s390mach.h
index d9ea7ed2e46e9ceead16eab686ebdff3086ee8fe..7abb42a09ae2e9a162123fc45fceda10500994d8 100644
(file)
--- 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 */