hw/omap_l4.c: Add helper function omap_l4_region_base
[qemu/wangdongxu.git] / qemu-barrier.h
blobb77fce23a95962ad29b2526f6a313eae39381047
1 #ifndef __QEMU_BARRIER_H
2 #define __QEMU_BARRIER_H 1
4 /* FIXME: arch dependant, x86 version */
5 #define smp_wmb() asm volatile("" ::: "memory")
7 /* Compiler barrier */
8 #define barrier() asm volatile("" ::: "memory")
10 #endif