Adds e500/85xx based memory barrier Signed-off-by: Vivek Mahajan <vivek.maha...@freescale.com> --- Resending it to linuxppc-...@ozlabs.org
arch/powerpc/include/asm/synch.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/synch.h b/arch/powerpc/include/asm/synch.h index 28f6ddb..8298089 100644 --- a/arch/powerpc/include/asm/synch.h +++ b/arch/powerpc/include/asm/synch.h @@ -23,6 +23,11 @@ static inline void isync(void) { __asm__ __volatile__ ("isync" : : : "memory"); } + +static inline void mbar(int mo) +{ + __asm__ __volatile__ ("mbar %0" : : "i" (mo) : "memory"); +} #endif /* __ASSEMBLY__ */ #if defined(__powerpc64__) -- 1.5.6.5 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev