blob: faafc373ea6c5cc4398a45f1079a0d7f027ac606 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001// 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 */