]> git.proxmox.com Git - mirror_qemu.git/blame - qemu-barrier.h
elf: Calculate symbol size if needed
[mirror_qemu.git] / qemu-barrier.h
CommitLineData
85199474
MT
1#ifndef __QEMU_BARRIER_H
2#define __QEMU_BARRIER_H 1
3
4/* FIXME: arch dependant, x86 version */
5#define smp_wmb() asm volatile("" ::: "memory")
6
1d93f0f0
JK
7/* Compiler barrier */
8#define barrier() asm volatile("" ::: "memory")
9
85199474 10#endif