2012-03-28 17:30:03 +00:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*
|
2012-11-24 02:22:08 +00:00
|
|
|
* Copyright (C) 2001 - 2012 Tensilica Inc.
|
2012-03-28 17:30:03 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _XTENSA_SYSTEM_H
|
|
|
|
#define _XTENSA_SYSTEM_H
|
|
|
|
|
2012-11-24 02:22:08 +00:00
|
|
|
#define mb() ({ __asm__ __volatile__("memw" : : : "memory"); })
|
|
|
|
#define rmb() barrier()
|
2012-03-28 17:30:03 +00:00
|
|
|
#define wmb() mb()
|
|
|
|
|
2015-12-27 13:04:42 +00:00
|
|
|
#define __smp_mb__before_atomic() barrier()
|
|
|
|
#define __smp_mb__after_atomic() barrier()
|
2014-03-13 18:00:35 +00:00
|
|
|
|
2013-11-06 13:57:36 +00:00
|
|
|
#include <asm-generic/barrier.h>
|
2012-03-28 17:30:03 +00:00
|
|
|
|
|
|
|
#endif /* _XTENSA_SYSTEM_H */
|