2010-02-22 19:57:54 +03:00
|
|
|
#ifndef __QEMU_BARRIER_H
|
|
|
|
#define __QEMU_BARRIER_H 1
|
|
|
|
|
|
|
|
/* FIXME: arch dependant, x86 version */
|
|
|
|
#define smp_wmb() asm volatile("" ::: "memory")
|
|
|
|
|
2010-06-25 18:56:49 +04:00
|
|
|
/* Compiler barrier */
|
|
|
|
#define barrier() asm volatile("" ::: "memory")
|
|
|
|
|
2010-02-22 19:57:54 +03:00
|
|
|
#endif
|