diff options
Diffstat (limited to 'qemu-barrier.h')
-rw-r--r-- | qemu-barrier.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-barrier.h b/qemu-barrier.h index 3bd1075d66..b77fce23a9 100644 --- a/qemu-barrier.h +++ b/qemu-barrier.h @@ -4,4 +4,7 @@ /* FIXME: arch dependant, x86 version */ #define smp_wmb() asm volatile("" ::: "memory") +/* Compiler barrier */ +#define barrier() asm volatile("" ::: "memory") + #endif |