/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file "COPYING" in the main directory of this archive3* for more details.4*5* Copyright (C) 2001 - 2012 Tensilica Inc.6*/78#ifndef _XTENSA_SYSTEM_H9#define _XTENSA_SYSTEM_H1011#include <asm/core.h>1213#define __mb() ({ __asm__ __volatile__("memw" : : : "memory"); })14#define __rmb() barrier()15#define __wmb() __mb()1617#ifdef CONFIG_SMP18#define __smp_mb() __mb()19#define __smp_rmb() __rmb()20#define __smp_wmb() __wmb()21#endif2223#if XCHAL_HAVE_S32C1I24#define __smp_mb__before_atomic() barrier()25#define __smp_mb__after_atomic() barrier()26#endif2728#include <asm-generic/barrier.h>2930#endif /* _XTENSA_SYSTEM_H */313233