Commit | Line | Data |
---|---|---|
f9aa7e18 DH |
1 | /* |
2 | * This file is subject to the terms and conditions of the GNU General Public | |
3 | * License. See the file "COPYING" in the main directory of this archive | |
4 | * for more details. | |
5 | * | |
599bf77a | 6 | * Copyright (C) 2001 - 2012 Tensilica Inc. |
f9aa7e18 DH |
7 | */ |
8 | ||
9 | #ifndef _XTENSA_SYSTEM_H | |
10 | #define _XTENSA_SYSTEM_H | |
11 | ||
599bf77a MF |
12 | #define mb() ({ __asm__ __volatile__("memw" : : : "memory"); }) |
13 | #define rmb() barrier() | |
f9aa7e18 DH |
14 | #define wmb() mb() |
15 | ||
1ce79091 MT |
16 | #define __smp_mb__before_atomic() barrier() |
17 | #define __smp_mb__after_atomic() barrier() | |
09a01c0c | 18 | |
93ea02bb | 19 | #include <asm-generic/barrier.h> |
f9aa7e18 DH |
20 | |
21 | #endif /* _XTENSA_SYSTEM_H */ |