From: Timur Tabi Date: Fri, 3 Dec 2010 09:03:46 +0000 (+0000) Subject: powerpc: fix implementation of out_8 to match the other out_XX functions X-Git-Tag: v2011.06-rc1~125 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1fade70203668a62c4024246c23450817f5753be;p=u-boot powerpc: fix implementation of out_8 to match the other out_XX functions Signed-off-by: Timur Tabi --- diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h index 4ddad26e81..56ac9fe6c5 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)