projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af4d907
)
powerpc: fix implementation of out_8 to match the other out_XX functions
author
Timur Tabi
<timur@freescale.com>
Fri, 3 Dec 2010 09:03:46 +0000
(09:03 +0000)
committer
Wolfgang Denk
<wd@denx.de>
Wed, 27 Apr 2011 22:55:16 +0000
(
00:55
+0200)
Signed-off-by: Timur Tabi <timur@freescale.com>
arch/powerpc/include/asm/io.h
patch
|
blob
|
history
diff --git
a/arch/powerpc/include/asm/io.h
b/arch/powerpc/include/asm/io.h
index 4ddad26e8180aba7f9052a13c08699588b902d32..56ac9fe6c534b2f08d69ac0b3610252bd8b60a7b 100644
(file)
--- a/
arch/powerpc/include/asm/io.h
+++ b/
arch/powerpc/include/asm/io.h
@@
-175,7
+175,10
@@
extern inline int in_8(const volatile unsigned char __iomem *addr)
extern inline void out_8(volatile unsigned char __iomem *addr, int val)
{
- __asm__ __volatile__("stb%U0%X0 %1,%0; eieio" : "=m" (*addr) : "r" (val));
+ __asm__ __volatile__("sync;\n"
+ "stb%U0%X0 %1,%0;\n"
+ : "=m" (*addr)
+ : "r" (val));
}
extern inline int in_le16(const volatile unsigned short __iomem *addr)