summaryrefslogtreecommitdiff
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2010-12-03 09:03:46 +0000
committerWolfgang Denk <wd@denx.de>2011-04-28 00:55:16 +0200
commit1fade70203668a62c4024246c23450817f5753be (patch)
tree06d4b9dbdda0754185a1e07f0f528e24ad28d483 /arch/powerpc/include
parentaf4d9074aa0ed7c0d62084af02a6967d69915de6 (diff)
downloadu-boot-imx-1fade70203668a62c4024246c23450817f5753be.zip
u-boot-imx-1fade70203668a62c4024246c23450817f5753be.tar.gz
u-boot-imx-1fade70203668a62c4024246c23450817f5753be.tar.bz2
powerpc: fix implementation of out_8 to match the other out_XX functions
Signed-off-by: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/io.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h
index 4ddad26..56ac9fe 100644
--- 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)