WIP FPC-III support
[linux/fpc-iii.git] / arch / nds32 / include / asm / barrier.h
blob16413172fd50deefa334a18ef5c833face0e615b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2005-2017 Andes Technology Corporation
4 #ifndef __NDS32_ASM_BARRIER_H
5 #define __NDS32_ASM_BARRIER_H
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>
13 #endif /* __ASSEMBLY__ */
15 #endif /* __NDS32_ASM_BARRIER_H */