xref: /kvmtool/arm/aarch32/include/kvm/barrier.h (revision 7c0e8b0c5560ce2f500fa4d7ba7865e7360e7991)
1*7c0e8b0cSWill Deacon #ifndef KVM__KVM_BARRIER_H
2*7c0e8b0cSWill Deacon #define KVM__KVM_BARRIER_H
3*7c0e8b0cSWill Deacon 
4*7c0e8b0cSWill Deacon #define dmb()	asm volatile ("dmb" : : : "memory")
5*7c0e8b0cSWill Deacon 
6*7c0e8b0cSWill Deacon #define mb()	dmb()
7*7c0e8b0cSWill Deacon #define rmb()	dmb()
8*7c0e8b0cSWill Deacon #define wmb()	dmb()
9*7c0e8b0cSWill Deacon 
10*7c0e8b0cSWill Deacon #endif /* KVM__KVM_BARRIER_H */
11