root/arch/nds32/include/asm/barrier.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 */
   2 // Copyright (C) 2005-2017 Andes Technology Corporation
   3 
   4 #ifndef __NDS32_ASM_BARRIER_H
   5 #define __NDS32_ASM_BARRIER_H
   6 
   7 #ifndef __ASSEMBLY__
   8 #define mb()            asm volatile("msync all":::"memory")
   9 #define rmb()           asm volatile("msync all":::"memory")
  10 #define wmb()           asm volatile("msync store":::"memory")
  11 #include <asm-generic/barrier.h>
  12 
  13 #endif  /* __ASSEMBLY__ */
  14 
  15 #endif  /* __NDS32_ASM_BARRIER_H */

/* [<][>][^][v][top][bottom][index][help] */