mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
powerpc: fix implementation of out_8 to match the other out_XX functions
Signed-off-by: Timur Tabi <timur@freescale.com>
This commit is contained in:
parent
af4d9074aa
commit
1fade70203
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue