aboutsummaryrefslogtreecommitdiff
blob: b77fce23a95962ad29b2526f6a313eae39381047 (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef __QEMU_BARRIER_H
#define __QEMU_BARRIER_H 1

/* FIXME: arch dependant, x86 version */
#define smp_wmb()   asm volatile("" ::: "memory")

/* Compiler barrier */
#define barrier()   asm volatile("" ::: "memory")

#endif