mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 10:47:04 +07:00
ddab2c0eaf
more stubs, mostly Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
17 lines
419 B
C
17 lines
419 B
C
#if defined(__i386__) || defined(__x86_64__)
|
|
#define barrier() asm volatile("" ::: "memory")
|
|
#define mb() __sync_synchronize()
|
|
|
|
#define smp_mb() mb()
|
|
# define dma_rmb() barrier()
|
|
# define dma_wmb() barrier()
|
|
# define smp_rmb() barrier()
|
|
# define smp_wmb() barrier()
|
|
/* Weak barriers should be used. If not - it's a bug */
|
|
# define rmb() abort()
|
|
# define wmb() abort()
|
|
#else
|
|
#error Please fill in barrier macros
|
|
#endif
|
|
|