2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2001 - 2005 Tensilica Inc.
9 #ifndef _XTENSA_SYSTEM_H
10 #define _XTENSA_SYSTEM_H
12 #define smp_read_barrier_depends() do { } while(0)
13 #define read_barrier_depends() do { } while(0)
15 #define mb() barrier()
20 #error smp_* not defined
22 #define smp_mb() barrier()
23 #define smp_rmb() barrier()
24 #define smp_wmb() barrier()
27 #define set_mb(var, value) do { var = value; mb(); } while (0)
29 #endif /* _XTENSA_SYSTEM_H */