mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 04:31:27 +00:00
Instead of referring to the Linux header including the barrier macros, copy over the rather simple implementation for the PowerPC barrier instructions kvmtool uses. This fixes build for powerpc. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
9 lines
235 B
C
9 lines
235 B
C
#ifndef _KVM_BARRIER_H_
|
|
#define _KVM_BARRIER_H_
|
|
|
|
#define mb() asm volatile ("sync" : : : "memory")
|
|
#define rmb() asm volatile ("sync" : : : "memory")
|
|
#define wmb() asm volatile ("sync" : : : "memory")
|
|
|
|
#endif /* _KVM_BARRIER_H_ */
|