Skip to content
Snippets Groups Projects
Commit 1fade702 authored by Timur Tabi's avatar Timur Tabi Committed by Wolfgang Denk
Browse files

powerpc: fix implementation of out_8 to match the other out_XX functions


Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
parent af4d9074
No related branches found
No related tags found
No related merge requests found
...@@ -175,7 +175,10 @@ extern inline int in_8(const volatile unsigned char __iomem *addr) ...@@ -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) 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) extern inline int in_le16(const volatile unsigned short __iomem *addr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment