Merge tag 'block-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / arch / xtensa / include / asm / barrier.h
blob583800bd7259077d8f4386b27d0f4cac26543e3c
1 /*
2 * Copied from the kernel sources to tools/:
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.
8 * Copyright (C) 2001 - 2012 Tensilica Inc.
9 */
11 #ifndef _TOOLS_LINUX_XTENSA_SYSTEM_H
12 #define _TOOLS_LINUX_XTENSA_SYSTEM_H
14 #define mb() ({ __asm__ __volatile__("memw" : : : "memory"); })
15 #define rmb() barrier()
16 #define wmb() mb()
18 #endif /* _TOOLS_LINUX_XTENSA_SYSTEM_H */