2012-03-28 21:30:03 +04: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 06:22:08 +04:00
|
|
|
* Copyright (C) 2001 - 2012 Tensilica Inc.
|
2012-03-28 21:30:03 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _XTENSA_SYSTEM_H
|
|
|
|
#define _XTENSA_SYSTEM_H
|
|
|
|
|
2012-11-24 06:22:08 +04:00
|
|
|
#define mb() ({ __asm__ __volatile__("memw" : : : "memory"); })
|
|
|
|
#define rmb() barrier()
|
2012-03-28 21:30:03 +04:00
|
|
|
#define wmb() mb()
|
|
|
|
|
2015-12-27 16:04:42 +03:00
|
|
|
#define __smp_mb__before_atomic() barrier()
|
|
|
|
#define __smp_mb__after_atomic() barrier()
|
2014-03-13 22:00:35 +04:00
|
|
|
|
2013-11-06 17:57:36 +04:00
|
|
|
#include <asm-generic/barrier.h>
|
2012-03-28 21:30:03 +04:00
|
|
|
|
|
|
|
#endif /* _XTENSA_SYSTEM_H */
|