blob: 89734addc36de4e3acd1f50a7fc74d4dd08bba97 [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
Chintan Pandya862bb892011-11-22 14:51:20 +053013#include <mach/memory.h>
14
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070015#define mb() do \
16 { \
17 dsb();\
18 outer_sync(); \
19 write_to_strongly_ordered_memory(); \
20 } while (0)
21#define rmb() do { dmb(); write_to_strongly_ordered_memory(); } while (0)
22#define wmb() mb()