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
6 * Copyright (C) 2001 - 2012 Tensilica Inc.
9 #ifndef _XTENSA_SYSTEM_H
10 #define _XTENSA_SYSTEM_H
14 #define mb() ({ __asm__ __volatile__("memw" : : : "memory"); })
15 #define rmb() barrier()
19 #define __smp_mb__before_atomic() barrier()
20 #define __smp_mb__after_atomic() barrier()
23 #include <asm-generic/barrier.h>
25 #endif /* _XTENSA_SYSTEM_H */