2012-03-29 00:30:03 +07: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 09:22:08 +07:00
|
|
|
* Copyright (C) 2001 - 2012 Tensilica Inc.
|
2012-03-29 00:30:03 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _XTENSA_SYSTEM_H
|
|
|
|
#define _XTENSA_SYSTEM_H
|
|
|
|
|
2012-11-24 09:22:08 +07:00
|
|
|
#define mb() ({ __asm__ __volatile__("memw" : : : "memory"); })
|
|
|
|
#define rmb() barrier()
|
2012-03-29 00:30:03 +07:00
|
|
|
#define wmb() mb()
|
|
|
|
|
2013-11-06 20:57:36 +07:00
|
|
|
#include <asm-generic/barrier.h>
|
2012-03-29 00:30:03 +07:00
|
|
|
|
|
|
|
#endif /* _XTENSA_SYSTEM_H */
|