Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copied from the kernel sources to tools/:
0003  *
0004  * This file is subject to the terms and conditions of the GNU General Public
0005  * License.  See the file "COPYING" in the main directory of this archive
0006  * for more details.
0007  *
0008  * Copyright (C) 2001 - 2012 Tensilica Inc.
0009  */
0010 
0011 #ifndef _TOOLS_LINUX_XTENSA_SYSTEM_H
0012 #define _TOOLS_LINUX_XTENSA_SYSTEM_H
0013 
0014 #define mb()  ({ __asm__ __volatile__("memw" : : : "memory"); })
0015 #define rmb() barrier()
0016 #define wmb() mb()
0017 
0018 #endif /* _TOOLS_LINUX_XTENSA_SYSTEM_H */