xref: /linux/tools/arch/xtensa/include/asm/barrier.h (revision 95298d63c67673c654c08952672d016212b26054)
1 /*
2  * Copied from the kernel sources to tools/:
3  *
4  * This file is subject to the terms and conditions of the GNU General Public
5  * License.  See the file "COPYING" in the main directory of this archive
6  * for more details.
7  *
8  * Copyright (C) 2001 - 2012 Tensilica Inc.
9  */
10 
11 #ifndef _TOOLS_LINUX_XTENSA_SYSTEM_H
12 #define _TOOLS_LINUX_XTENSA_SYSTEM_H
13 
14 #define mb()  ({ __asm__ __volatile__("memw" : : : "memory"); })
15 #define rmb() barrier()
16 #define wmb() mb()
17 
18 #endif /* _TOOLS_LINUX_XTENSA_SYSTEM_H */
19